+ 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
    Office 365
    Posts
    6

    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
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,594

    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!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    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
    Office 365
    Posts
    6

    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