+ Reply to Thread
Results 1 to 3 of 3

Using IF, VLOOKUP, and ISNA to find Commonalities

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Toronto, Canada
    MS-Off Ver
    2011
    Posts
    2

    Using IF, VLOOKUP, and ISNA to find Commonalities

    I have 3 sheets of data. Using IF, VLOOKUP, ISNA/MATCH, I have to create a formula in sheet 3 to find out if the value(A2), exists in either sheet 1, or sheet 2 or both. If the value is in sheet 1 exclusively I need the formula to generate 1, if the value is in sheet 2 exclusively I need the formula to generate a 2, if its in both I need it to generate a 3. Any help would be appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Using IF, VLOOKUP, and ISNA to find Commonalities

    Guessing on the ranges....here is a formula structure that will do what you need.

    =SUM(IF(ISERROR(VLOOKUP(A2,Sheet1!A1:X500,3,0)),0,1),IF(ISERROR(VLOOKUP(A2,Sheet2!A1:X500,3,0)),0,2))

    basically,
    if the vlookup on sheet 1 is an error (no match), return a zero. if there is a match, return a 1
    and
    if the vlookup on sheet 2 is an error, (no match) return a zero. if there is a match, return a 2

    Sum those numbers together.

    if there is a match on sheet 1 but not sheet 2 there will be a =SUM(1,0) = 1
    Match on 2 but not on 1 =SUM(0,2) = 2
    Match on both =SUM(1,2) = 3

    Hope this helps/makes sense!


    Welcome to ExcelForum.
    Last edited by Speshul; 10-27-2014 at 04:22 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    10-27-2014
    Location
    Toronto, Canada
    MS-Off Ver
    2011
    Posts
    2

    Re: Using IF, VLOOKUP, and ISNA to find Commonalities

    Thank you so much!

+ 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. IF(ISNA on vlookup.
    By macke in forum Excel General
    Replies: 2
    Last Post: 06-09-2010, 08:30 AM
  2. Finding Commonalities b/w 2 Columns
    By albert5445 in forum Excel General
    Replies: 3
    Last Post: 04-20-2010, 03:28 PM
  3. ISNA and vlookup
    By jbwizoz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-21-2008, 05:16 PM
  4. vlookup, IF, and ISNA
    By MMBOLI in forum Excel General
    Replies: 2
    Last Post: 08-17-2006, 11:53 AM
  5. Reports from Commonalities In Spreasheets
    By rmccaul3 in forum Excel General
    Replies: 0
    Last Post: 08-11-2006, 12:50 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