+ Reply to Thread
Results 1 to 11 of 11

Index/Match Formula to return multiple results

  1. #1
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Index/Match Formula to return multiple results

    Hi, So I've created a formula that automatically returns the PO number to the corresponding offer it is referencing...and vice versa. The issue I am having is that occasionally there are several PO's which are for a single offer, though the formula I've created only returns the first PO number that it finds when I'd prefer it to report every PO number that is connected to the single offer. I understand there is something to do with an array formula and using Control-shift-enter when entering the formula but I can't figure out what to do to report multiple PO numbers.

    I'll attach a sample file, The formula I am currently using is:

    =IFERROR(INDEX(Pos!$A$2:$A$22,INDEX(MATCH(A2,Pos!$H$2:$H$22,0),0)),"")

    Thanks for all your help
    Mike Stafford
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match Formula to return multiple results

    If you pull in multiple entries, then the rest of your data wont line up (seeing as they are entries, not formulas)?

    Also, they work the same, but I changed some of your formulas...
    sheet1...
    H2=IFERROR(INDEX(Offers!A2:A24,MATCH(B2&C2&D2,INDEX(Offers!B2:B24&Offers!C2:C24&Offers!D2:D24,0),0)),"")

    sheet2...
    I2=IFERROR(INDEX(Pos!$A$2:$A$22,MATCH(A2,Pos!$H$2:$H$22,0)),"")

    Not really sure what your expected answer would look like, but this is the kind or ARRAY formula you would use to pull out multiple matches of your data...
    =IFERROR(INDEX(Offers!$A$2:$A$24,SMALL(IF((Offers!$B$2:$B$24=Pos!B2)*(Offers!$C$2:$C$24=Pos!C2)*(Offers!$D$2:$D$24=Pos!D2),ROW(Pos!$A$2:$A$22)-1),ROWS($A$1:A1))),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Index/Match Formula to return multiple results

    I need an array formula that will report multiple PO numbers into each cell on the offers sheet. Since PO #2 and #5 have the same offer corresponding to it, I would like for it to report both of the PO numbers on the offer sheet under offer #032515-01.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match Formula to return multiple results

    and, like I said, what about the rest of your data? it will then no longer line up proerly

  5. #5
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Index/Match Formula to return multiple results

    Yes it would...it wouldn't change anything except mention more than one PO number.The formula is searching for other offer numbers that match the one in the first row, don't see how that'd have any effect on the other data.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match Formula to return multiple results

    Did you try the 2nd formula I suggested in post 2?

  7. #7
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Index/Match Formula to return multiple results

    Yes and its still returning only one PO number per cell. I believe the last function you mentioned with the small command is the correct one I'm just not sure how to apply that formula to what I'm doing. The "small" formula you wrote out is for the filling out the offer numbers but I need a command that will fill out multiple PO numbers for me. I tried changing it to be for what I'm doing but Im having no luck.

    Thanks for your help

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match Formula to return multiple results

    hmm OK, what am I missing here? You perhaps missed entering my formula as an ARRAY (using CTRL SHIFT ENTER, not just enter), and you give negative reps with a comment of "Bunk"?
    Last edited by FDibbins; 06-11-2015 at 12:35 AM.

  9. #9
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Index/Match Formula to return multiple results

    Yeah because you really weren't much help, I'm pretty sure you didn't even read what I was asking...What'd you expect?

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match Formula to return multiple results

    Did you enter the formula as an ARRAY formula - using CTRL SHIFT ENTER, and 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. Press F2 on that cell and try again.

  11. #11
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Index/Match Formula to return multiple results

    I'm suppose to be using a small formula correct? I made my initial formula an array formula but it's still returning only one value per cell.

+ 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. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  2. [SOLVED] SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many
    By athickett in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-06-2014, 02:46 PM
  3. Using Index And Match To Return Potential Multiple Results To One Cell
    By jcaynes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2013, 10:41 AM
  4. Using Index Match to return multiple results with very messy data.
    By falkon007 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-30-2013, 12:28 PM
  5. Can Index or Match return multiple results?
    By waverider in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-30-2007, 10:06 PM

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