Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
carl
 
Posts: n/a
Default If Statement Question

I have a table that looks like so:

COLA COLB
1 AB
2 CD
1 EF
1 GH
2 IJ
2 KL

I would like to use the MCONCAT(A2:A6,",") formula to look at COLA and if
equal to 1, concat those but if equal to 2 do nothing.

Like this:

AB,EF;GH


  #2   Report Post  
Michael
 
Posts: n/a
Default

Hi Carl
One way:
Put in an extra column and insert the following formula
=IF(A1=1,B1,"").......copy down as far as you need.
Then at the bottom of the extra column put
=CONCATENATE(C1,C2,C3,C4,C5,C6).......this function allows for 30 arguments
only!! But you could get around that by breaking it up into groups of 30
lines.
I'm sure the other NG users will come up with a SUMPRODUCT answer but this
might help in the short term.

HTH
Michael

"carl" wrote:

I have a table that looks like so:

COLA COLB
1 AB
2 CD
1 EF
1 GH
2 IJ
2 KL

I would like to use the MCONCAT(A2:A6,",") formula to look at COLA and if
equal to 1, concat those but if equal to 2 do nothing.

Like this:

AB,EF;GH


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
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 04:59 PM.

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

About Us

"It's about Microsoft Excel"