+ Reply to Thread
Results 1 to 5 of 5

LOOKUP based on two criteria

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    Oxford, England
    MS-Off Ver
    365
    Posts
    66

    LOOKUP based on two criteria

    Hi,

    I was wondering if someone would be able to help me.

    I have a formula that searches a column in a table from the bottom up for a specific value and shows the corresponding value from a different column (and shows 'None' if no matching values are found):

    =IF(ISNA(LOOKUP(2,1/(B:B=$F$3),A:A)),"None",LOOKUP(2,1/(B:B=$F$3),A:A))

    What I need is for the formula to show the bottom-most value that also has another specific value in a different column. I've attached an example of what I mean. In the example, the formula needs to find the bottom-most 'Hello' in column B that is also 'Yes' in column C, and produce the value in column A - which would be '4'.

    I hope this makes sense. Any help would be much appreciated.

    Many thanks,
    Jamie
    Attached Files Attached Files
    Last edited by jamiem4; 09-01-2015 at 03:47 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,944

    Re: LOOKUP based on two criteria

    Jamie,
    No attachment.

  3. #3
    Registered User
    Join Date
    10-14-2014
    Location
    Oxford, England
    MS-Off Ver
    365
    Posts
    66

    Re: LOOKUP based on two criteria

    Apologies! Attached

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: LOOKUP based on two criteria

    Try

    =IFERROR(LOOKUP(2,1/( $B$1:$B$10&$C$1:$C$10=F3&"Yes"), $A$1:$A$10), "None")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    10-14-2014
    Location
    Oxford, England
    MS-Off Ver
    365
    Posts
    66

    Re: LOOKUP based on two criteria

    Amazing! Yes it does, thanks

+ 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. [SOLVED] Lookup Value based on 3 criteria
    By lexusap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-22-2015, 01:30 AM
  2. [SOLVED] Lookup based off of 4 criteria
    By Butcher1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2014, 09:58 AM
  3. Lookup based off two criteria
    By h_aesa1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2011, 10:13 PM
  4. Lookup based on two criteria
    By Idz21 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2011, 11:49 AM
  5. Lookup based on several criteria
    By the_giza in forum Excel General
    Replies: 1
    Last Post: 10-30-2006, 02:42 PM
  6. Lookup based on 2 criteria
    By Barb R. in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 09-06-2005, 07:05 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