+ Reply to Thread
Results 1 to 4 of 4

match 2 criteria

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    Findlay, OH
    MS-Off Ver
    Excel 2007
    Posts
    33

    match 2 criteria

    I have 2 tables that are coming onto my spreadsheet automacticlly everyday and they can't come to the some tab. I need to match up the date and department # on both sheets and then return the UOM to the other sheet.

    I am not familiar with MATCH and I think that is what I need to use so I need help. Please see attached workbookkronos uom.xlsx

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: match 2 criteria

    As you have a lot of data, you want to avoid array-formula solutions, so I would advise using a helper column in sheets FRX and Sheet2. Put this formula in D2 of FRX sheet:

    =A2&"_"&B2

    It should copy down automatically. Do the same for Sheet2.

    Then you can use this formula in C2 of the krono sheet:

    =IFERROR(INDEX(FRX!C:C,MATCH(A2&"_"&B2,FRX!D:D,0)),0) + IFERROR(INDEX(Sheet2!C:C,MATCH(A2&"_"&B2,Sheet2!D:D,0)),0)

    then copy this down to the bottom of your data by double-clicking the fill handle (the small black square in the bottom right corner of the cursor) - this took several seconds to calculate on my machine, so you might want to fix the values.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-24-2012
    Location
    Findlay, OH
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: match 2 criteria

    thank you this works perfect. I don't understand the first formula though?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: match 2 criteria

    The first formula just joins the date with the department (separated by an underscore) so that we then have to check and match only one column, as the MATCH functions in the second formula also join column A with column B with an underscore between them and uses that to find a match with column D in the two sheets.

    Pete

+ 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. Index Match based on 2 Criteria only returning 1 match
    By stsanders22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 11:26 PM
  2. [SOLVED] Formula that counts rows that match 2 criteria, but do not match another
    By VivatMartin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 07:43 AM
  3. Replies: 6
    Last Post: 01-28-2012, 06:59 PM
  4. Replies: 2
    Last Post: 01-28-2012, 05:26 PM
  5. Replies: 5
    Last Post: 09-22-2009, 06:11 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