Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
method373
 
Posts: n/a
Default Concatenating info from several cells into the one above


Hey guys,

I'm trying to pull info from a number of cells into one cell, the only
thing is that the number of cells I'm referencing change, for example,
one cell might pull info from 3 cells below, and another might pull
info from the 8 cells below. Basically, I'm trying to pull info from
all the children items into a parent item. It should pull all the info
from the children until it hits a blank cell - that blank cell is the
new parent.

I have attached a screenshot of the sample data. In the first one, you
can see that D2 should pull all the info from D3 - D5, D6 should pull
info from D7 - D9, and D10 should pull all the info from D11-D16

Any help is appreciated!

Thanks


4386


+-------------------------------------------------------------------+
|Filename: excel2.JPG |
|Download: http://www.excelforum.com/attachment.php?postid=4386 |
+-------------------------------------------------------------------+

--
method373
------------------------------------------------------------------------
method373's Profile: http://www.excelforum.com/member.php...o&userid=29888
View this thread: http://www.excelforum.com/showthread...hreadid=515137

  #2   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Concatenating info from several cells into the one above


Do you want to do this with formulas or code?

It's tricky with a formula because you want the result in the same
column as the data. Can I suggest using column E? Using MCONCAT
function from the MOREFUNC add-in you can use this formula in E2 copied
down

=IF(D2<"",D2,MCONCAT(D3:INDEX(D3:D$100,MATCH(TRUE ,D3:D$100="",0))))

confirmed with CTRL+SHIFT+ENTER

MOREFUNC add-in is available to download from here

http://www.rhdatasolutions.com/morefunc/


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=515137

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
import info into cells more than the 66000 cell limit vic Excel Discussion (Misc queries) 1 January 20th 06 02:57 PM
change info in other cells when i change a number in a drop list? macbr549 Excel Discussion (Misc queries) 2 September 11th 05 02:07 AM
How do I select cells and make the info populate into a form? jompeters Excel Worksheet Functions 0 January 7th 05 09:43 PM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:17 AM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM


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