+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP response not changing based on logical test

  1. #1
    Registered User
    Join Date
    06-18-2022
    Location
    Ohio
    MS-Off Ver
    Office 365 Online
    Posts
    72

    VLOOKUP response not changing based on logical test

    When I use this formula on 'Billing Master' DP2, it will work for logical test DO2 value of PT, but if you put anything else it will either show a 0 or keep showing GP (for PT) instead of the corresponding value. Any help would be appreciated!

    =IF(ISNUMBER(DO2),VLOOKUP(DN2,Tables!A1:B6,2),"")
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,199

    Re: VLOOKUP response not changing based on logical test

    Try this:

    =IF(ISNUMBER(DO2),VLOOKUP(DN2,Tables!A1:B6,2,0),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-18-2022
    Location
    Ohio
    MS-Off Ver
    Office 365 Online
    Posts
    72

    Re: VLOOKUP response not changing based on logical test

    Well that worked. Thank you! So I had to have the FALSE (0) in there to tell it only an exact match? So exact match in this case just means there's data present in the cell I'm calling for? (I'm sure my basic terms aren't right, but just trying to understand better for the future!)
    Last edited by AliGW; 05-14-2024 at 10:15 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,199

    Re: VLOOKUP response not changing based on logical test

    Yes, that is correct - you need it to force an exact match (the default is approximate).

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  5. #5
    Registered User
    Join Date
    06-18-2022
    Location
    Ohio
    MS-Off Ver
    Office 365 Online
    Posts
    72

    Re: VLOOKUP response not changing based on logical test

    Thank you very much for the explanation!

+ 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. [SOLVED] VLOOKUP formula not looking up Logical Test
    By Stephen Troughton in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-11-2021, 06:07 AM
  2. adding additional logical test to an existing test
    By mukuljain99 in forum Excel General
    Replies: 4
    Last Post: 11-02-2019, 03:29 PM
  3. [SOLVED] constructing IF logical test based on text string stored in other cell
    By 7344Robin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-29-2014, 11:27 AM
  4. Logical test, vlookup +several items problem
    By Bernis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-18-2014, 03:21 AM
  5. showing name based on logical test
    By dbuff in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-20-2013, 09:50 AM
  6. [SOLVED] Can I add a third logical test to an if or vlookup formula?
    By excyclist in forum Excel General
    Replies: 3
    Last Post: 07-01-2012, 11:23 PM
  7. change text color based on logical test
    By T3nMan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2005, 01:06 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