+ Reply to Thread
Results 1 to 4 of 4

Modify formula to check if value exists in a different worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    03-13-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    29

    Modify formula to check if value exists in a different worksheet

    I'm currently using the following formula to check if the contents of cell A exist in any of the cells in column A from the worksheet 'ahrefs' and return a Yes or a No accordingly.

    =IF(ISNA(MATCH(A2,ahrefs!$A$2:$A$50000,0)),"No","Yes")
    I wish to also check if the value exists in column A of worksheet 'wmt' but am unsure how to modify the above formula to include an OR statement that includes the additional sheet. Please could someone advise? Thanks in advance.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Modify formula to check if value exists in a different worksheet

    One way...

    =IF(COUNT(MATCH(A2,ahrefs!$A$2:$A$50000,0),MATCH(A2,wmt!$A$2:$A$50000,0)),"Yes","No")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-13-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Modify formula to check if value exists in a different worksheet

    Quote Originally Posted by Tony Valko View Post
    One way...

    =IF(COUNT(MATCH(A2,ahrefs!$A$2:$A$50000,0),MATCH(A2,wmt!$A$2:$A$50000,0)),"Yes","No")
    Perfecto.

    Thanks very much Tony, that did the job nicely.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Modify formula to check if value exists in a different worksheet

    You're welcome. Thanks for the feedback!

+ 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] Check if a worksheet exists
    By Mort_Komabt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2005, 08:40 PM
  2. check if worksheet exists
    By Ian in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 10:05 PM
  3. [SOLVED] check if worksheet exists
    By joeeng in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. [SOLVED] check if worksheet exists
    By joeeng in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. check if worksheet exists
    By joeeng in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01: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