Finding multiple substrings in a cell

wzzl1

New Member
Joined
Jun 2, 2015
Messages
4
Hello kind people of this forum. I have to do a substantial amount of data analysis for my master thesis and I am kind of getting stuck. I hope you will be able to help me with this issue. Ill give an example which is not actually in my thesis but a little easier to explain:

-The first row contains a database of cars. Each cell has three data values separated by commas: the brand, colour and year it was manufactured. e.g. "Toyota, green, 1998"
-It is a big database, like 10000 cars.
-In the second row I want to return a different value if the cell contains a certain type of car. For instance I want the country the car was manufactured in. Eg. if 'Toyota' is found return 'Japan'. If 'Citroen' is found, return 'France' and if 'Porsche' is found, return 'Germany'.

Normally I do this with the FIND function:

=IF(ISNUMBER(FIND("Toyora",A1)),"true","false")

...but now I have to search for multiple substrings and I want to use a single formula to extend to all of the cells.

Anyone helping me is advancing science! Thanks in advance.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I should solve that use text to columns and use , as a separator.

Then you have 3 columns of data.

For the country I would make a table with car / country and use VLookup to find that country in column D.
 
Upvote 0
You'd do better to have three separate cells each for each record on the database (brand colour year)
Create a table of brands and countries
Then just do a VLOOKUP on the brand against your Brand/country table.
 
Upvote 0

Forum statistics

Threads
1,203,073
Messages
6,053,379
Members
444,660
Latest member
Mingalsbe

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