+ Reply to Thread
Results 1 to 4 of 4

Vlookup - empty cell if '0' is found

  1. #1
    Forum Contributor
    Join Date
    05-06-2017
    Location
    London, United Kingdom
    MS-Off Ver
    2016
    Posts
    281

    Vlookup - empty cell if '0' is found

    Hi guys, pretty much what the title says..
    I'm using this formula.. in G27 is numbers that is retrieved by another formula.. but sometimes '0' will appear.. which gives me #N/A because there is nothing linked to that number. anyway to change the formula just to be blank if '0' is in G27?
    Thanks


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Vlookup - empty cell if '0' is found

    Try


    =IF(OR(G27="",G27=0),"",VLOOKUP(G27,Information!$B$4:$F$371,4,FALSE))

  3. #3
    Registered User
    Join Date
    12-16-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Vlookup - empty cell if '0' is found

    try this:

    =iferror(VLOOKUP(G27,Information!$B$4:$F$371,4,FALSE),"")

  4. #4
    Forum Contributor
    Join Date
    05-06-2017
    Location
    London, United Kingdom
    MS-Off Ver
    2016
    Posts
    281

    Re: Vlookup - empty cell if '0' is found

    Worked, thanks john!

+ 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. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  2. Next empty cell from found cell
    By Rob K in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2015, 07:04 AM
  3. [SOLVED] Match Data and Run Until an empty cell is found
    By trevor2524 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2014, 10:57 AM
  4. Replies: 11
    Last Post: 08-08-2014, 02:40 PM
  5. Delete row when empty cell found in column
    By jillstone69 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2010, 12:28 PM
  6. How to create a range by going down a column until an empty cell is found
    By jrdickerson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2009, 01:25 PM
  7. Vlookup, return empty cell (not #N/A) when result not found
    By haitham1984 in forum Excel General
    Replies: 4
    Last Post: 11-03-2008, 03:15 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