close

I have a large spreadsheet that has job numbers in column A and broken up job
descriptions in column C. I'm looking for a way to concatenate the text in
the cells in column C, but it has to concatenate based on what job number is
in column A. For example:

A B C
01 Picks fruit.
01 Trims trees.
02 Does data entry.
02 Reviews records.
02 Maintains files.
03 Gives shots.
03 Monitors blood pressure.

Based on this type of information, somewhere in the spreadsheet (after each
change in column A or at the very bottom), I need lines that state the
following:

01 Picks fruit. Trims trees.
02 Does data entry. Reviews records. Maintains
files.
03 Gives shots. Monitors blood pressure.


You could perhaps do this with the MCONCAT function available with the
MOREFUNC addin, download MOREFUNC from here

www.rhdatasolutions.com/morefunc/

then you could use this formula in D1 copied down column

=IF(A1=A2,quot;quot;,A1amp;quot; quot;amp;MCONCAT(INDEX(C$1:C1,MATCH(A1,A$1:A1,0)):C1, quot; quot;))--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: www.excelforum.com/member.php...oamp;userid=30486
View this thread: www.excelforum.com/showthread...hreadid=512925On Wed, 15 Feb 2006 13:35:28 -0800, quot;BCBCquot; gt;
wrote:

gt;I have a large spreadsheet that has job numbers in column A and broken up job
gt;descriptions in column C. I'm looking for a way to concatenate the text in
gt;the cells in column C, but it has to concatenate based on what job number is
gt;in column A. For example:
gt;
gt;A B C
gt;01 Picks fruit.
gt;01 Trims trees.
gt;02 Does data entry.
gt;02 Reviews records.
gt;02 Maintains files.
gt;03 Gives shots.
gt;03 Monitors blood pressure.
gt;
gt;Based on this type of information, somewhere in the spreadsheet (after each
gt;change in column A or at the very bottom), I need lines that state the
gt;following:
gt;
gt;01 Picks fruit. Trims trees.
gt;02 Does data entry. Reviews records. Maintains
gt;files.
gt;03 Gives shots. Monitors blood pressure.

1. Download and install Longre's free morefunc.xll add-in from
xcell05.free.fr/

2. Ensure your table of JobNum | JobDesc is sorted ascending by JobNum as you
show in your example.

3. F2:1
F3:2
F4:3

G2:
=MCONCAT(OFFSET(JobDesc,MATCH(F2,JobNum,0)-1,0,COUNTIF(JobNum,F2)))

Copy/drag down--ron

Hello

I suggest to take my UDF vlookupall() from
www.sulprobil.com/html/vlookupall.html

HTH,
Bernd

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()