+ Reply to Thread
Results 1 to 4 of 4

Lookup Value to return Yes, No or leave blank

  1. #1
    Registered User
    Join Date
    07-03-2020
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    4

    Lookup Value to return Yes, No or leave blank

    Hi,

    Hoping you could help on the formula.

    I'm trying to lookup a value (Sheet1 Column A) in a list of number in Sheet2 Column A and if found it returns "Yes", if not "No". Another condition is that if the cell in the lookupvalue is blank, the result will be blank.
    Result to be shown in Sheet1 Column B

    I have attached a sample of the work I'm doing

    Many thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,538

    Re: Lookup Value to return Yes, No or leave blank

    Welcome to the forum.

    In B2 copied down:

    =IF(Sheet1!A2="","",IF(A2=Sheet2!A2,"Yes","No"))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    740

    Re: Lookup Value to return Yes, No or leave blank

    Hi
    Try:
    =IF(A2="","",IFERROR(IF(VLOOKUP(A2,Sheet2!$A$2:$A$25,1,0)=A2,"YES"),"NO"))

  4. #4
    Registered User
    Join Date
    07-03-2020
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    4

    Re: Lookup Value to return Yes, No or leave blank

    Thank you very much for all the help

+ 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. Replies: 6
    Last Post: 02-13-2019, 05:47 AM
  2. Replies: 1
    Last Post: 09-17-2017, 05:58 AM
  3. SUMIFS, If no criteria match, leave cell blank, else return value
    By eemiller1997 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2017, 02:10 AM
  4. Replies: 5
    Last Post: 07-02-2017, 10:25 AM
  5. [SOLVED] return day of week or leave blank
    By ntambomvu in forum Excel General
    Replies: 6
    Last Post: 11-22-2016, 12:05 PM
  6. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  7. Replies: 3
    Last Post: 10-13-2012, 08:09 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