+ Reply to Thread
Results 1 to 2 of 2

Concatenating info from several cells into the one above

  1. #1
    Registered User
    Join Date
    12-24-2005
    Posts
    9

    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


    excel2.JPG

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    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/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1