+ Reply to Thread
Results 1 to 3 of 3

Cross reference two sheets and then check another column

  1. #1
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Cross reference two sheets and then check another column

    Attached is a spreadsheet with the sample data. I am trying to compare two lists in the following manner and return 1 of 3 possible answers.

    I want to compare "Work Sheet" column A and "Master List" column A and then:

    If there is no match then Column D on Master List should return a value of "FALSE"

    If there is a match BUT column G on "Work Sheet" is blank then Column D on Master List should return a value of "BLANK"

    If there is a match AND column G on "Work Sheet" is NOT blank then Column D on Master List should return a value of "TRUE"

    I can check each one separately with MATCH or CONDITIONAL FORMATTING but for some reason I cant figure out how to combine this into one equation string.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Cross reference two sheets and then check another column

    Hi

    Try this function.

    Work Sheet!D2: =IF(COUNTIF('Master List'!A:A,'Work Sheet'!A2)=0,FALSE,IF(ISBLANK(G2),"BLANK",TRUE))

    Copy down as required.

    HTH

    rylo

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Cross reference two sheets and then check another column

    Hi dagindi;

    Rylo's formula sets WorkSheet!D2. I think you want Master!D2 to contain your formula

    Master!D2 : =If(IsError(Match(A2,'WorkSheet'!A:A,0)),False,If(Index('WorkSheet'!G:G,Match(A2,'WorkSheet'!A:A,0),1)="","Blank",True))

    And copy down column D
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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