+ Reply to Thread
Results 1 to 3 of 3

Look for match on two worksheets

  1. #1
    roy.okinawa
    Guest

    Look for match on two worksheets

    I have this formula that looks for a match on another worksheet:

    =IF(ISNA(MATCH(F8,NSN6!A:A,0)),"N/A",INDEX(NSN6!D:D,MATCH(F8,NSN6!A:A,0)))

    I need this scenario added to the formula: First look at NSN6 for match.
    If found, input match. If no match found, look on NSN5 for match. If found,
    input match. If not found on either worksheet, input N/A.


  2. #2
    Biff
    Guest

    Re: Look for match on two worksheets

    Hi!

    One way:

    =IF(COUNTIF(NSN6!A:A,F8)+COUNTIF(NSN5!A:A,F8)=0,"N/A",IF(COUNTIF(NSN6!A:A,F8),INDEX(NSN6!D:D,MATCH(F8,NSN6!A:A,0)),INDEX(NSN5!D:D,MATCH(F8,NSN5!A:A,0))))

    Biff

    "roy.okinawa" <[email protected]> wrote in message
    news:[email protected]...
    >I have this formula that looks for a match on another worksheet:
    >
    > =IF(ISNA(MATCH(F8,NSN6!A:A,0)),"N/A",INDEX(NSN6!D:D,MATCH(F8,NSN6!A:A,0)))
    >
    > I need this scenario added to the formula: First look at NSN6 for match.
    > If found, input match. If no match found, look on NSN5 for match. If
    > found,
    > input match. If not found on either worksheet, input N/A.
    >




  3. #3
    roy.okinawa
    Guest

    Re: Look for match on two worksheets

    That did it.

    Thanks again.

    "Biff" wrote:

    > Hi!
    >
    > One way:
    >
    > =IF(COUNTIF(NSN6!A:A,F8)+COUNTIF(NSN5!A:A,F8)=0,"N/A",IF(COUNTIF(NSN6!A:A,F8),INDEX(NSN6!D:D,MATCH(F8,NSN6!A:A,0)),INDEX(NSN5!D:D,MATCH(F8,NSN5!A:A,0))))
    >
    > Biff
    >
    > "roy.okinawa" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have this formula that looks for a match on another worksheet:
    > >
    > > =IF(ISNA(MATCH(F8,NSN6!A:A,0)),"N/A",INDEX(NSN6!D:D,MATCH(F8,NSN6!A:A,0)))
    > >
    > > I need this scenario added to the formula: First look at NSN6 for match.
    > > If found, input match. If no match found, look on NSN5 for match. If
    > > found,
    > > input match. If not found on either worksheet, input N/A.
    > >

    >
    >
    >


+ 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