+ Reply to Thread
Results 1 to 9 of 9

Index/Match with multiple criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Index/Match with multiple criteria

    I was given a template to fill in. I have manipulated the data that I had into the same format. Now I just need to take my data and dump it into the template. I'm thinking I need some sort of index/match, but I can't figure it out. I need to populate the Daily column on the RadGridExport tab with the info in the daily column on the reformatted tab. I need to match Facility and Job Name on both to get the daily value. File is attached.
    Attached Files Attached Files
    Last edited by narrowgate88; 03-28-2013 at 09:51 AM.

  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
    53,048

    Re: Index/Match with multiple criteria

    This array formula will give you what you want. Remember to enteer it with CTRL SHIFT enter...

    =IFERROR(INDEX(Reformatted!A1:G3000,MATCH(RadGridExport!A2&RadGridExport!C2,Reformatted!A1:A3000&Reformatted!B1:B3000,0),MATCH(RadGridExport!E$1,Reformatted!$A$1:$G$1,0)),"")

    An alternative without using an array formula (an array formula over that many rows may slow your system down), wiyjd be to add a helper column on sheet 2 and copy this down (I used H)...
    =A2&B2
    Then in sheet1 dailty, use this...
    =INDEX(Reformatted!C1:C3000,MATCH(RadGridExport!A2&RadGridExport!C2,Reformatted!H1:H3000,0),1)
    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
    02-14-2013
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Index/Match with multiple criteria

    Hi,

    Alternatively, you can use vlookup function and a helper column together. Formula is in the attached file.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Index/Match with multiple criteria

    I like the second option, so I added the helper column. But when I put the formula into the daily column, I got the #N/A error.

  5. #5
    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
    53,048

    Re: Index/Match with multiple criteria

    @ singapore, that option will only work if the helper is added before the "daily" column (I didnt look at your file, so maybe thats where you put it?)

    @ narrowgate, I put that formula in sheet1, E2, and it references sheet2 columns C:H, is that the correct way round? It is pulling data FROM sheet2 INTO sheet1?

  6. #6
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Index/Match with multiple criteria

    That worked fine. Thank you very much.

  7. #7
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Index/Match with multiple criteria

    @ singapore - as it turns out some of the data is missing, but that could be a formatting issue.

    @fdibbins - yes, it is pulling info from Sheet 2 into Sheet 1

  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
    53,048

    Re: Index/Match with multiple criteria

    take a look at the attached.

    I also noticed that some of your Job names dont match from 1 sheet to the other...
    Assistant Administrator (sheet1 C6)
    Asst Administrator (sheet2, B3)

    For your calcs to be accurate, all names need to be identical. Excle will see Asst Administrator as being different to Assistant Administrator
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    237

    Re: Index/Match with multiple criteria

    That is a good point. So I really should use Job Code instead of Job Description. @singapore's used Job Code. I think the rest of my variances are related to inconsistencies in labeling.

+ 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