#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Concatenate If

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Concatenate If

Hi,

You can do it, but its a rather tedious formuls:

=IF(A1=1,B1,"")&IF(A2=1,B2,"")&....

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Concatenate If

Exactly What I needed. thanks


--
Thank you for your time

Novice


"Shane Devenshire" wrote:

Hi,

You can do it, but its a rather tedious formuls:

=IF(A1=1,B1,"")&IF(A2=1,B2,"")&....

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Concatenate If

Great. That worked for me. Next questions would be how do I eliminate
repeated text

My actual Formula is:
=IF($A$1=$O1,$D$1,"")&IF($A$2=$O1,$D$2,"")&IF($A$3 =$O1,$D$3,"")&IF($A$4=$O1,$D$4,"")&IF($A$5=$O1,$D$ 5,"")&IF($A$6=$O1,$D$6,"")&IF($A$7=$O1,$D$7,"")

O1 is the reference number for me to look against.D:D is the text that I am
capturing, and A:A is the column I am basing my logic test off of.

I need to do two things. 1st, remove any duplicate names...
2nd, I need to place a hard return between them. I think that the new line
function is CHAR(10), but not sure where it goes in the formula, and I have
no clue as to how to eliminate or pass over duplicate text strings...

Thanks


--
Thank you for your time

Novice


"Novice" wrote:

Exactly What I needed. thanks


--
Thank you for your time

Novice


"Shane Devenshire" wrote:

Hi,

You can do it, but its a rather tedious formuls:

=IF(A1=1,B1,"")&IF(A2=1,B2,"")&....

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
concatenate terri Excel Worksheet Functions 3 June 13th 08 09:52 PM
Concatenate Sheriff Excel Worksheet Functions 1 May 25th 08 11:07 AM
Concatenate help Gary S Excel Discussion (Misc queries) 3 November 27th 07 07:54 PM
Concatenate Cassie Excel Worksheet Functions 8 August 4th 07 11:44 PM
I know how to concatenate ,can one de-concatenate to split date? QUICK BOOKS PROBLEM- New Users to Excel 1 July 26th 05 05:07 PM


All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"