Thread: Concatenate If
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tom Hutchins Tom Hutchins is offline
external usenet poster
 
Posts: 1,069
Default Concatenate If

Here is one way....

In C1, enter
=IF(A1=1,B1,"")

In C2, enter
=IF(A2=1,IF(LEN(C1)0,C1&"; "&B2,B2),C1)

Copy C2 down through all rows of data. The last row will have the final
result.

Hope this helps,

Hutch

"Novice" wrote:

Can I concatenate cells in a coumn if cells in another column return a
particular value?

e.g.

A B
1 1 Text A
2 1 Text B
3 2 Text C
4 3 Text C
5 4 Text C
4 Text C

I would like the formula to find all instances of the value 1 (one) in
Column A and then concatenate only those Rows in Column B

result: Text A; Text B

I will need to repeat this exercise for 40 particular values.

I cannot use macros, addons, or VBA editor.

--
Thank you for your time

Novice