GeneBat
asked on
Combine Concatenated columns in One Column
Hi Experts -
I'm trying to combine my four concatenated columns into one column. In other words, is it possible to do a IF/THEN with concatenation statements.
I want to (see example) place all of my concatened columns fields (AU, AV, AW, AX) in one column (AY).
Thanks in Advance,
GeneBat
Combine-Notifications.xlsx
I'm trying to combine my four concatenated columns into one column. In other words, is it possible to do a IF/THEN with concatenation statements.
I want to (see example) place all of my concatened columns fields (AU, AV, AW, AX) in one column (AY).
Thanks in Advance,
GeneBat
Combine-Notifications.xlsx
Or if you mean "concatenate the values that are not false":
=MID(IF(AU2<>"FALSE",";"&A U2,"")&IF( AV2<>"FALS E",";"&AV2 ,"")&IF(AW 2<>"FALSE" ,";"&AW2," ")&IF(AX2< >"FALSE"," ;"&AX2,"") ,2,1000)
=MID(IF(AU2<>"FALSE",";"&A
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One formula for column AY that doesn't need helper columns AU, AV, AW or AX:
=SUBSTITUTE(IF(OR(AM2={"IS ","ER"})," -PO: [" & AL2 & "] ","") & "-QTY: [" & AN2 & "] " & "-P/N: [" & AO2 & "] " & IF(OR(AM2={"RS","IS"}),"-D EFECT: [" & IF(AM2="RS",AR2,AP2) & "] -LOCATION: [" & IF(AM2="RS",AS2,AO2) & "] ","") & "-TEXT: [" & AT2 & "]","-","",1)
=SUBSTITUTE(IF(OR(AM2={"IS
The same formula could also be cast a smidge shorter using MID:
=MID(IF(OR(AM2={"IS","ER"} ),"-PO: [" & AL2 & "] ","") & "-QTY: [" & AN2 & "] " & "-P/N: [" & AO2 & "] " & IF(OR(AM2={"RS","IS"}),"-D EFECT: [" & IF(AM2="RS",AR2,AP2) & "] -LOCATION: [" & IF(AM2="RS",AS2,AO2) & "] ","") & "-TEXT: [" & AT2 & "]",2,999)
=MID(IF(OR(AM2={"IS","ER"}
ASKER
Works for me! Thanks again for the knowledge share.
=AU2&AV2&AW2&AX2
Or, if you want a delimiter (such as semicolon):
=AU2&";"&AV2&";"&AW2&";"&A