+ Reply to Thread
Results 1 to 6 of 6

How is the "0" that the Vlookup returns defined

  1. #1
    Registered User
    Join Date
    12-18-2023
    Location
    Europe
    MS-Off Ver
    2021
    Posts
    12

    How is the "0" that the Vlookup returns defined

    Hi all,

    I have a Vlookup which is returning some 0's and some N/A's (as it should).
    i then have the following formulae:
    =IF(ISNA(BZ15)*OR(BZ15="0"),IF((VLOOKUP($P15,Mapping!$C:$I,7,FALSE)="None"),CA$2,BZ15),BZ15)

    But I'm not sure if that "0" here OR(BZ15="0") is the correct way to define the 0 being returned by the Vlookup.

    I hope this is clear.

    Thanks

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

    Re: How is the "0" that the Vlookup returns defined

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How is the "0" that the Vlookup returns defined

    This OR(BZ15="0") is clearly out of the VLOOKUP() function.

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

    Re: How is the "0" that the Vlookup returns defined

    No, it's not clear (to me), but you could try this:

    =IF(OR(ISNA(BZ15),BZ15=0), ...

  5. #5
    Registered User
    Join Date
    12-18-2023
    Location
    Europe
    MS-Off Ver
    2021
    Posts
    12

    Re: How is the "0" that the Vlookup returns defined

    This worked
    thanks!

    seems like i was using the If(Or) incorrectly

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: How is the "0" that the Vlookup returns defined

    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.

    Also, if you have not already done so, you may not be aware that you can thank 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.

+ 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. replace all defined range names in the sheet that start with "Street" to "Road"
    By matrex in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-04-2016, 08:53 AM
  2. [SOLVED] vlookup and sumif vlookup returns yes and is also matching something else with "errors"?
    By mecexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2015, 03:45 PM
  3. Replies: 2
    Last Post: 08-10-2015, 10:56 PM
  4. [SOLVED] IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)
    By Simcik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2014, 12:43 PM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] IFERROR(VLOOKUP) That returns "0" when reference cell is empty
    By Sam Capricci in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-04-2013, 01:16 AM
  7. vlookup of a value returns "#N/A" when value is found and format seems correct
    By stickylobster in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2009, 04:40 PM

Tags for this Thread

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