+ Reply to Thread
Results 1 to 8 of 8

Look-up with Multiple Criterias

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Look-up with Multiple Criterias

    Dear Excel Forum Users,

    I am currently faced with the option to try do a look-up with multiple criterias. Below is the sample for index match lookup that I was working on.

    =INDEX(Sheet1!D1:D10,MATCH(1,INDEX((Sheet1!B1:B10=B50)*(Sheet1!C1:C10=C50),0,1),0))

    While the look-up works if the value of cell B50 and cell C50 corresponds with the column B1:B10 and C1:C10 respectively, I am hoping to add an element to "ignore" the criteria if it is blank.
    In other words, if the cells B1:B10 is completely empty, the look-up should continue to work - however it will just be based on the other set of criteria in cell C50, which will do the look-up from cells C1:C10.

    Currently, if I were to leave B1:B10 empty, the look-up will not work as it is unable to match any corresponding values based on cell B50.

    Happy to listen to other alternatives. Many thanks in advance.

    Jensen

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Look-up with Multiple Criterias

    Could you post copy of your spreadsheet?

  3. #3
    Registered User
    Join Date
    06-14-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Look-up with Multiple Criterias

    Dear Dewilk,

    Attached is the sample file.
    The error is in cell K3. Assuming that all Grade 38 employee irrespective of their department will get £30 for car cost.
    Instead of keying in all permutations of departments in the cost matrix, I wish to leave it as blanks - so the cost will be applied to all employees as long as their criteria for grade (38)is met.

    Jensen
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Look-up with Multiple Criterias

    Hi Jensen,

    an easy patch could be to open the formula with a condition

    Please Login or Register  to view this content.
    Regards

    Stefano
    Last edited by canapone; 06-14-2012 at 03:38 AM. Reason: Italian translation went badly
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  5. #5
    Registered User
    Join Date
    06-14-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Look-up with Multiple Criterias

    Thanks for you reply Stefano!

    If I understand you correctly, you are suggesting to hard-code the cost to display £30 if the grade is 38.
    Unfortunately I am trying to avoid that as the cost matrix may change very frequently so may not be the best option to lock in to a number or to a cell. Please pardon me for not being clear earlier!

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Look-up with Multiple Criterias

    Hi,

    thanks for your kind feedback: please pardon my English. I'll follow with attention your thread, meanwhile I hope you'll get a robust solution.

    Regards from Firenze

  7. #7
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Look-up with Multiple Criterias

    What's the criteria set in cell B50 and C50 are going to be?

  8. #8
    Registered User
    Join Date
    06-14-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Look-up with Multiple Criterias

    Dear Dewilk,

    Dells B50 and C50 will be equivalent to cell H3 and I3 in the sample file.

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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