+ Reply to Thread
Results 1 to 5 of 5

Formula to return mulitple columns of data into one cell

  1. #1
    Registered User
    Join Date
    05-12-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Exclamation Formula to return mulitple columns of data into one cell

    Hi,

    I have a spreadsheet where I have a list of fund codes going down column A and each fund has 'sibling funds'. These sibling fund are listed individually across the page i.e one in each column across from B to U.

    I have 2 SHEETS. SHEET 1 is kind of like a form and SHEET 2 is the refence tab that has all of the funds listed with the sibling funds listed next to it in subsequent columns.

    The fund code has already been looked up in SHEET 1 and is showing in cell E11 then I need to reference this fund code in SHEET 1 CELL E11 and then use that fund code to look it up in SHEET 2 and return all of the sibling codes into cell E14 in SHEET 1.

    Can anyone help with this? I think it might be a VLOOKUP and an INDEX or MATCH but i cant figure it out.

    Any help appreciated!

    Thanks,
    Lizzie

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Formula to return mulitple columns of data into one cell

    Do you mean you want all siblings to be concatenated into one cell "E14" probably seperated by a comma?
    Or do you want a kind of list box giving you the different siblings related to the specific fund stated in cell "E11" to choose from?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    05-12-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula to return mulitple columns of data into one cell

    Yes I want all siblings to be concatenated into one cell "E14" - each one seperated by a comma..

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Formula to return mulitple columns of data into one cell

    I tried some formulas and finally did some research on the NET about your question. I think it is not doable with a formula. A macro will do it though. I was able to find some with Google. If you don't find what you need, let me know, I'll help you.
    Regards

  5. #5
    Registered User
    Join Date
    05-12-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula to return mulitple columns of data into one cell

    Thanks for your help. I actually have an answer if you're interested:

    =IFERROR(IF(VLOOKUP(E11,'SHEET2!A:W,4,)>0,VLOOKUP(E11,'SHEET2'!A:W,4,)&"; ","-")&IF(VLOOKUP(E11,'SHEET2'!A:W,5,)>0,VLOOKUP(E11,'SHEET2'!A:W,5,)&"; ","")&IF(VLOOKUP(E11,'SHEET2'!A:W,6,)>0,VLOOKUP(E11,'SHEET2'!A:W,6,)&"; ","")&

    Just repeated for each column!!

+ 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