Results 1 to 3 of 3

Formula to look in different tables

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Formula to look in different tables

    Greetings, Gurus.

    I don't know what I'm doing wrong here. All I'm trying to do is enter a formula that looks up a value typed in D2. If it doesn't find a match in the first table, I wan't it to look in an alternate table. Here's the formula:

    =IF($D$2="","",IF(VLOOKUP($D$2,data2,1,FALSE)="#N/A",VLOOKUP($D$2,data3,1,FALSE),VLOOKUP($D$2,data2,1,FALSE)))
    If the formula finds a match in the table named "data2", then it displays the results correctly, but if it doesn't find a match in "data2", it keeps returning #N/A, even if I know there is a match in "data3".

    Thanks in advance for any help you can offer.
    Last edited by hutch@edge.net; 03-09-2010 at 04:01 PM.

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