+ Reply to Thread
Results 1 to 5 of 5

0s. blanks and NA with VLookup

  1. #1
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    0s. blanks and NA with VLookup

    I've tried about a dozen if statements to make this work and I've given up.

    PHP Code: 
    =IFERROR(VLOOKUP([@SUPKey],'[Inactive Transport  EA Changes  New Price Plans (2).xlsb] over 6 months inactive'!$A:$C,3,FALSE),""
    For the above, If the value is found but the cell is blank, I want blank
    For the above, If the value is found and the cell value is 0, I want 0
    For the above, If the value is found and the cell value is anything else, I want anything else
    If it isn't found I want ""

    The solution I'm sure is ludicrously simple, but my brain is fried. Can someone please put me out of my misery
    Last edited by Kyle123; 03-25-2013 at 09:11 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: 0s. blanks and NA with VLookup

    =iferror(IF(VLOOKUP(B1,$E$1:$F$10,2,FALSE)="","",VLOOKUP(B1,$E$1:$F$10,2,FALSE)),"") should work
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: 0s. blanks and NA with VLookup

    Ta muchly

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: 0s. blanks and NA with VLookup

    hi Kyle. not very confident without the data, but probably something like that:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    to counter errors:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: 0s. blanks and NA with VLookup

    Thanks all working

+ 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