Results 1 to 6 of 6

vlookup displays "0" if reference cell is blank?

Threaded View

  1. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    =IF(OR($C$4="",$C$4="No Match"),"",VLOOKUP($C$4,Comments!$A$2:$E$295,5,0))
    First off let me point out that the above is really no different to your earlier formula just shortened slightly and lookup range reduced to A:E given you're returning value from E you need not reference anything beyond that.

    To answer your question... if it's purely presentational (as it would seem) you're best bet would be to use a Custom Format on the cell as opposed to double evaluating the entire VLOOKUP, eg:

    [=0]"";General
    So 0 will persist in the cell but the cell will appear as blank... this is preferable to doing the VLOOKUP twice over.
    Last edited by DonkeyOte; 01-22-2009 at 12:59 PM. Reason: code tags

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