Fill columns with value based on content of another cell

MisterMints

New Member
Joined
Jun 29, 2015
Messages
7
Hi all,

Looking for a simple way to fill a cell based on the content of another cell. Wasn't sure what really to search for, so apologies if this is a question that's been asked to death.

I have a spreadsheet with almost 1000 populated rows. In column C, I need to report whether the content in the same row of column E is an internal or external website. Not all the URLs belong to the same domain (e.g. some are mycompany.com, others are mysimililarnamecompany.com).

Almost world example, I might want to report that any string containing the word "Google" is Internal and that would cover google.com, google.co.uk, googleanlytics.com, googlemaps.com, but anything else, such as bbc.co.uk, bing.com is flagged as External.

Does that make sense? Is there an easy way to do this while searching against multiple string values?

Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I am not smart enough to find a solution using just 1 cell's formula,
but if you use 2 formulas in separate cells, you can get the result.

Lets say column J is blank - then enter a formula here:
=IFNA(VLOOKUP("*google*",$E2:$E2,1,FALSE),"Ext")
This will return a result that is either "Ext", or the full web address.

With this result, you can then write this formula in column C:
=IF($J2:$J2="Ext","External","Internal")
This will give you the desired result.
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,956
Latest member
JPav

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