+ Reply to Thread
Results 1 to 5 of 5

vlookup issue

  1. #1
    Registered User
    Join Date
    03-02-2015
    Location
    Tallahassee, FL
    MS-Off Ver
    Office 2013
    Posts
    5

    vlookup issue

    I am trying to match two criteria in one worksheet to data in another worksheet and then return a value specified in the first worksheet if the two criteria are found in the second worksheet.

    Why does

    =IF(ISNA(AND(VLOOKUP($J110,'Rpt476 MTD Nov 14'!$X:$X,1,FALSE),VLOOKUP($H110,'Rpt476 MTD Nov 14'!$J:$J,1,FALSE))),0,F110)

    give me false positives, but the following does not? What is the purpose of the <>"" in the formula and what is it doing? (I found it on a blog, but now can't find where I found it before and don't know why it's working when the first one isn't working all the time).

    =IF(ISNA(AND(VLOOKUP($J110,'Rpt476 MTD Nov 14'!$X:$X,1,FALSE)<>"",VLOOKUP($H110,'Rpt476 MTD Nov 14'!$J:$J,1,FALSE)<>"")),0,F110)

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: vlookup issue

    The <> "" means does not equal the null set or does not equal blank (not quite the same)

    Hard to say why the first will give false positives, it must have something to do with returning blanks but hard to say from here.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-02-2015
    Location
    Tallahassee, FL
    MS-Off Ver
    Office 2013
    Posts
    5

    Re: vlookup issue

    I'm verifying my formula again and it's not doing what I need. I need to match the two criteria in one worksheet to two criteria in another worksheet - THAT ARE ON THE SAME LINE. Any help with that?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: vlookup issue

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: vlookup issue

    I don't think either of those formulas are doing (or will be able to do) what you think it's doing..
    Vlookup and AND are really not the right tools for this.

    You want to test if J110 exists in column X of the other sheet, and H110 exists on the same row in column J of the other sheet?
    And return the value from F110 if it's true.

    Is that about right?
    Try

    =IF(SUMPRODUCT(--('Rpt476 MTD Nov 14'!$X$1:$X$1000=$J110),--('Rpt476 MTD Nov 14'!$J$1:$J$1000=$H110))>0,F110,0)

+ 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. Vlookup issue
    By saltytuna in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-09-2014, 12:26 PM
  2. [SOLVED] Vlookup Issue. Please help
    By faizjaafar87 in forum Excel General
    Replies: 7
    Last Post: 12-18-2012, 09:28 AM
  3. VLOOKUP Issue
    By ShredDude in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2008, 05:07 PM
  4. VLOOKUP issue
    By nfbelo in forum Excel General
    Replies: 1
    Last Post: 07-12-2005, 01:05 PM
  5. [SOLVED] VLOOKUP ISSUE
    By Hardip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2005, 05:06 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