+ Reply to Thread
Results 1 to 10 of 10

Help with a formula to match two criteria

  1. #1
    Registered User
    Join Date
    10-30-2017
    Location
    HK
    MS-Off Ver
    2016
    Posts
    9

    Help with a formula to match two criteria

    Two tables, Daily Entry and Wage Change.

    I need a formula that can find the wage during the date of entry on the "Daily Entry" table from the "Wage Change" table. Formula would be inputted from C3 to C17. Im sorry if im unclear, let me know what i need to clarify.

    Basically im trying to input employee daily job without having to input their salary every time, but it needs to reflect their salary at that as well.

    Thanks.E.g..png

  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,936

    Re: Help with a formula to match two criteria

    Hi, welcome to the forum

    Maybe this>
    =index(I:I,match(a3&b3,index($G$3:$G$9&$h$3:$h$9,0),0))
    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
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Help with a formula to match two criteria

    Try in C3 then drag down:

    =LOOKUP(B3,1/($G$3:$G$9=A3)*$H$3:$H$9,$I$3:$I$9)
    Quang PT

  4. #4
    Registered User
    Join Date
    10-30-2017
    Location
    HK
    MS-Off Ver
    2016
    Posts
    9

    Re: Help with a formula to match two criteria

    the index gave me a 0 on the search, whether its ENTER or ENTER+CTRL+SHIFT

    This seemed to do the trick
    =LOOKUP(B3,1/($G$3:$G$9=A3)*$H$3:$H$9,$I$3:$I$9)

    Thanks bebo and Fdibbins

    I'll update if there is any error. THanks for the insanely quick reply!!!!
    Last edited by yamaijia; 10-31-2017 at 03:00 AM.

  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
    52,936

    Re: Help with a formula to match two criteria

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Help with a formula to match two criteria

    Quote Originally Posted by FDibbins View Post
    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    I think he has found what he need and he is giving a test.
    BTW, your INDEX should work if INDEX range is same dimension with MATCH range, AND using approx. MATCH

  7. #7
    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,936

    Re: Help with a formula to match two criteria

    Quote Originally Posted by bebo021999 View Post
    BTW, your INDEX should work if INDEX range is same dimension with MATCH range, AND using approx. MATCH
    Didnt think that would matter, but then maybe...
    =index($I$3:$I$9,match(a3&b3,index($G$3:$G$9&$h$3:$h$9,0),0))

    Would still like to see a sample file to test with

  8. #8
    Registered User
    Join Date
    10-30-2017
    Location
    HK
    MS-Off Ver
    2016
    Posts
    9

    Re: Help with a formula to match two criteria

    Quote Originally Posted by bebo021999 View Post
    Try in C3 then drag down:

    =LOOKUP(B3,1/($G$3:$G$9=A3)*$H$3:$H$9,$I$3:$I$9)
    I applied your formula to the main file, it worked, but it takes a long time to process as the number of data that is on it.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Help with a formula to match two criteria

    Quote Originally Posted by yamaijia View Post
    I applied your formula to the main file, it worked, but it takes a long time to process as the number of data that is on it.
    Maybe to combine name&date in a helper column then do the VLOOKUP.

  10. #10
    Registered User
    Join Date
    10-30-2017
    Location
    HK
    MS-Off Ver
    2016
    Posts
    9
    Quote Originally Posted by bebo021999 View Post
    Maybe to combine name&date in a helper column then do the VLOOKUP.
    How would it be able to search the salary correctly?

+ 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. Formula to match 2 criteria, then yes
    By serenitylai in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2017, 10:23 PM
  2. [SOLVED] INDEX/MATCH formula to match 3 criteria
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2017, 07:45 PM
  3. [SOLVED] Index and Two Match Criteria- meeting both criteria (need help to repair formula)
    By OilAndGasMan1984 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2017, 10:56 PM
  4. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  5. [SOLVED] Formula with some match criteria
    By pezalmendra in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-27-2013, 06:56 PM
  6. [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
  7. Formula to match several criteria
    By Neales in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2008, 10:01 AM

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