Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Concatenate by checking a condition

Hi,

I am trying to concatenate cells after checking the condition. For example

A B
1 0
1 A
1 B
2 0
2 1
2 B

I would like to check the value of A and concatenate B. For A = 1, I am
looking for 0 A B. For A = 2, I am looking for 0 1 B.

Is there a function to do it automatic?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Concatenate by checking a condition

Nothing built in to do this. There is a free add-in that has a function that
will do this:

http://www.download.com/Morefunc/300...-10423159.html

Then you can use an array formula** like this:

=TRIM(MCONCAT(IF(A1:A6=1,B1:B6&" ","")))

Note that the resulting string can't be longer than 255 characters.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Senthil" wrote in message
...
Hi,

I am trying to concatenate cells after checking the condition. For example

A B
1 0
1 A
1 B
2 0
2 1
2 B

I would like to check the value of A and concatenate B. For A = 1, I am
looking for 0 A B. For A = 2, I am looking for 0 1 B.

Is there a function to do it automatic?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Concatenate by checking a condition

Valko, Thanks for your help. I installed the add-in function that you have
suggested, I am getting the error message "#NAME?". I couldn't quite
understand what to do with array formula? Can you please help.
Thanks.

"T. Valko" wrote:

Nothing built in to do this. There is a free add-in that has a function that
will do this:

http://www.download.com/Morefunc/300...-10423159.html

Then you can use an array formula** like this:

=TRIM(MCONCAT(IF(A1:A6=1,B1:B6&" ","")))

Note that the resulting string can't be longer than 255 characters.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Senthil" wrote in message
...
Hi,

I am trying to concatenate cells after checking the condition. For example

A B
1 0
1 A
1 B
2 0
2 1
2 B

I would like to check the value of A and concatenate B. For A = 1, I am
looking for 0 A B. For A = 2, I am looking for 0 1 B.

Is there a function to do it automatic?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Concatenate by checking a condition

Valko, I had to restart my m/c after the download installation. It works
pretty good.

Thank you.

"T. Valko" wrote:

Nothing built in to do this. There is a free add-in that has a function that
will do this:

http://www.download.com/Morefunc/300...-10423159.html

Then you can use an array formula** like this:

=TRIM(MCONCAT(IF(A1:A6=1,B1:B6&" ","")))

Note that the resulting string can't be longer than 255 characters.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Senthil" wrote in message
...
Hi,

I am trying to concatenate cells after checking the condition. For example

A B
1 0
1 A
1 B
2 0
2 1
2 B

I would like to check the value of A and concatenate B. For A = 1, I am
looking for 0 A B. For A = 2, I am looking for 0 1 B.

Is there a function to do it automatic?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Concatenate by checking a condition

Good deal. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Senthil" wrote in message
...
Valko, I had to restart my m/c after the download installation. It works
pretty good.

Thank you.

"T. Valko" wrote:

Nothing built in to do this. There is a free add-in that has a function
that
will do this:

http://www.download.com/Morefunc/300...-10423159.html

Then you can use an array formula** like this:

=TRIM(MCONCAT(IF(A1:A6=1,B1:B6&" ","")))

Note that the resulting string can't be longer than 255 characters.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Senthil" wrote in message
...
Hi,

I am trying to concatenate cells after checking the condition. For
example

A B
1 0
1 A
1 B
2 0
2 1
2 B

I would like to check the value of A and concatenate B. For A = 1, I am
looking for 0 A B. For A = 2, I am looking for 0 1 B.

Is there a function to do it automatic?

Thanks






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
Formula: copy/concatenate cell contents matching condition Neil Hutchinson Excel Discussion (Misc queries) 4 September 2nd 08 09:51 AM
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
Checking a second lookup condition Obwan Excel Worksheet Functions 4 February 15th 07 07:41 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 08:39 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"