Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Merging rows base on value in other column

I have a wks for the description of stock items but the description is in 40
character groups so for one item number I have multiple rows, I need a way to
merge these rows into one cell per stock number.
example
Stock # description
s1 shoe, men
s1 style rbs
s1 color :brown

I need

s1 Shoe,men style rbs color brown
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Merging rows base on value in other column

Download and install the free add-in Morefunc.xll from:
http://xcell05.free.fr/english/

=TRIM(MCONCAT(IF(A2:A4="s1",B2:B4,"")&" "))

ctrl+shift+enter, not just enter


"Real" wrote:

I have a wks for the description of stock items but the description is in 40
character groups so for one item number I have multiple rows, I need a way to
merge these rows into one cell per stock number.
example
Stock # description
s1 shoe, men
s1 style rbs
s1 color :brown

I need

s1 Shoe,men style rbs color brown

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Merging rows base on value in other column

Thank you very much for your help this did work but as you might expect I
still need your help as my situation is a little more complex, this is the
file I have
s1 decrip_s1_l1 decrip_s1_l1decrip_s1_l2decrip_s1_l3
s1 decrip_s1_l2
s1 decrip_s1_l3
s2 decrip_s2_l1 decrip_s2_l1decrip_s2_l2
s2 decrip_s2_l2
s3 decrip_s3_l1 decrip_s3_l1decrip_s3_l2decrip_s3_l3decrip_s3_l4de crip_s3_l5
s3 decrip_s3_l2
s3 decrip_s3_l3
s3 decrip_s3_l4
s3 decrip_s3_l5
s4 decrip_S4_l1 decrip_S4_l1

I have many thousands of items and the lenght of the description varies for
each item, some have one line of description while others have 25 lines.....

So I need to have the formula find all the description linked to the same
stock number and then MCONCAT these rows into one cell.

Ideally I would mcomcat only once per Stock number but it is also OK if we
concat on all lines.

Thanks

"Teethless mama" wrote:

Download and install the free add-in Morefunc.xll from:
http://xcell05.free.fr/english/

=TRIM(MCONCAT(IF(A2:A4="s1",B2:B4,"")&" "))

ctrl+shift+enter, not just enter


"Real" wrote:

I have a wks for the description of stock items but the description is in 40
character groups so for one item number I have multiple rows, I need a way to
merge these rows into one cell per stock number.
example
Stock # description
s1 shoe, men
s1 style rbs
s1 color :brown

I need

s1 Shoe,men style rbs color brown

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
Merging rows based on column value [email protected] Excel Discussion (Misc queries) 2 November 14th 07 10:03 PM
Merging Data in Different Rows crcurrie Excel Discussion (Misc queries) 8 May 5th 07 11:19 PM
Sort Data Base By Column travelersway New Users to Excel 4 August 21st 06 11:22 PM
Merging rows Peter Horrocks New Users to Excel 1 November 15th 05 12:01 PM
Merging Two Rows Into One Ourania Excel Worksheet Functions 1 March 18th 05 10:07 AM


All times are GMT +1. The time now is 01:08 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"