Combining Columns keeping only one value

D

David

Hello,

I have a spreadsheet where I am trying to consolidate three columns of data
into one column which will keep only one of the three columns values.

Ex:

ColA ColB ColC
Med Bis IT
Eng Med Sci
Sci IT Med

I would want to merge these three just keeping any 'Med' values.
 
S

Sheeloo

What is med value? A string which contains 'med'?
Create a helper col where you can have a concatenate with if to get the med
value then convert to value and delete first three cols
=concatenate(if(condition checking for med in a1,a1,"")&if(condition
checking for med in b1,b1,""),if(condition checking for med in c1,c1,""))
 
D

David

'Med' in the case of this sheet is the phrase 'Doctor of Medicine'. So I want
it to merge the cells keeping only the phrase Doctor of Medicine if present
in the columns.
 
S

Sheeloo

Copy this into D1 and copy down
=CONCATENATE(IF(ISERROR(FIND("Doctor of
Medicine",A1)),"",A1),IF(ISERROR(FIND("Doctor of
Medicine",B1)),"",B1),IF(ISERROR(FIND("Doctor of Medicine",C1)),"",C1))

IF you get what you wanted in Col D then Copy it and Past Special|Values in
place and delete Cols A-C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top