+ Reply to Thread
Results 1 to 11 of 11

formula to return multiple values in single cell not working

  1. #1
    Registered User
    Join Date
    03-07-2017
    Location
    united states
    MS-Off Ver
    2013
    Posts
    6

    formula to return multiple values in single cell not working

    Excel 2013, 6 tabs in the worksheet. The total tab and the 5 data tabs. I am having an issue with the formulas that is on the total tab. I need it to look up information on the data tab and return the result of a room/wing #. My issue is that it is only returning the first listing that it comes to and doesn't list any additional rooms/wings that may have the same score. The formulas all work except for that. I've tried Vlookups, index-match, and something with VBAs and nothing is working.

    The formula I'm needing worked on is on the totals tab E7-E11 and G7-G11. If I haven't made it clear of what I'm wanting please let me know, and thanks ahead of time.

    If it's locked the code is 123
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: formula to return multiple values in single cell not working

    Using DORM 404 as an example and "helper" columns

    in I10

    =IFERROR(INDEX('404'!$A$3:$A$22,SMALL(IF($D$10='404'!$AG$3:$AG$22,ROW('404'!$AG$3:$AG$22)-ROW($A$3)+1,""),COLUMNS($A:A))),"")

    enter with Ctrl+Shift+Enter

    Copy across columns which will give list of cells which match maximum.

    You will then need to concatenate these cells in E10 either with formula or VBA.

    A similar method for G.

    You can "hide" the helper columns anywhere on you sheet.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-07-2017
    Location
    united states
    MS-Off Ver
    2013
    Posts
    6

    Re: formula to return multiple values in single cell not working

    I copied the formula as is into I10 and copied it over 5 more spaces, but there is nothing showing up in those boxes. I did do the ctrl+shift+enter and it put the { } around the formula as well. was there something else I was suppose to do to make the rooms show up there.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: formula to return multiple values in single cell not working

    See attached:

    =IFERROR(INDEX('404'!$A$3:$A$22,SMALL(IF($D$10='404'!$AG$3:$AG$22,ROW('404'!$AG$3:$AG$22)-ROW($A$3)+1,""),COLUMNS($A:A))),"")

    "404" references need to be changed accordingly
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-07-2017
    Location
    united states
    MS-Off Ver
    2013
    Posts
    6

    Re: formula to return multiple values in single cell not working

    It didn't even show anything even in cell I10 where I put the formula

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: formula to return multiple values in single cell not working

    As you can see it works in the attached so what is different?

    , ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  7. #7
    Registered User
    Join Date
    03-07-2017
    Location
    united states
    MS-Off Ver
    2013
    Posts
    6

    Re: formula to return multiple values in single cell not working

    I did hit ctrl+shift+enter and it did add the { } to the formula. I tried to open the attachment you had but it gave me an error which I have attached.
    Attached Images Attached Images

  8. #8
    Registered User
    Join Date
    03-07-2017
    Location
    united states
    MS-Off Ver
    2013
    Posts
    6

    Re: formula to return multiple values in single cell not working

    and here is the formula with the array confirmed { } and nothing in the cell. I didn't change anything else on it.
    Attached Images Attached Images

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: formula to return multiple values in single cell not working

    Attached is xlsm as the file (old format) contains macros.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-07-2017
    Location
    united states
    MS-Off Ver
    2013
    Posts
    6

    Re: formula to return multiple values in single cell not working

    Thanks JohnTopley. I don't know why the same formula isn't working in the original worksheet but I used yours and added the concatenate formula to combine them in one and it worked great. Thanks again. Saved me a lot of headache.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula to return multiple values in single cell not working

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Return multiple values to single cell from array
    By olliecottam in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-04-2017, 06:10 AM
  2. [SOLVED] vLookup multiple values separated by ";" in single cell / return result in single cell
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2015, 12:02 PM
  3. [SOLVED] How to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  4. How to return multiple values from an array in a single cell?
    By fkalinx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2014, 04:16 AM
  5. [SOLVED] COUNTIF Formula to Return Multiple Values in a Single Column
    By TommyK25 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2013, 05:01 AM
  6. [SOLVED] Excel formula to return multiple values against a single entry
    By ash_farooq in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-18-2012, 10:33 AM
  7. How to return multiple IF values in a single cell?
    By macmanjpc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2008, 08:54 AM

Tags for this Thread

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