How do I get Excel to match content of cell and perform an action?

nyancat

New Member
Joined
Jul 25, 2013
Messages
3
[FONT=NettoOT, Arial, sans-serif]I will have multiple Excel files that have very similar data in the first column (Company Names), how do I get Excel to find out what the information is in the first column and then post it's website in the 2nd column from a pre-populated list? I have hundreds of Company Names per Excel sheet.

For example I want to search in column one for the company "Apple", if "Apple is found, "http://www.apple.com" will display in the 2nd column. Then if "Microsoft" is found, "http://www.microsoft.com" will display in the 2nd column.


[/FONT]
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi nyancat,

You could create your master list of company names and web addresses on sheet2 and then use the INDEX MATCH function in an IF statement to put the relevant site against the company name which is typed in a certain cell.

Put the following formula in column B and copy down:

=IF(A1=$F$1,INDEX(Sheet2!$B$1:$B$2,MATCH(Sheet1!$F$1,Sheet2!$A$1:$A$2,0)),"")


Excel 2010
ABCDEF
1Company ASearch:Apple
2Company B
3Company C
4Microsoft
5Company D
6Applehttp://www.apple.com
7Company E
Sheet1



Excel 2010
AB
1Microsofthttp://www.microsoft.com
2Applehttp://www.apple.com
Sheet2



Hopefully this will be of some use.

AP
 
Last edited:
Upvote 0
Hi AP,

Is there anywhere I can download a sample of your excel sheet? I tried to replicate your instructions, but it's not working for me.

Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top