+ Reply to Thread
Results 1 to 3 of 3

Conditional format of a lookup result

  1. #1
    Registered User
    Join Date
    03-09-2006
    Location
    Australia
    Posts
    80

    Conditional format of a lookup result

    I use conditional formatting to hide "0" in reports in order to make them clearer to read. This works well apart from cells whose value is the result of a lookup where, if an error is found, the formula returns a "0":

    =IF(ISERROR(VLOOKUP(A3,'UNC SOH'!E$6:F$2000,2,0)),"0",VLOOKUP(A3,'UNC SOH'!E$6:F$2000,2,0))

    How can I get the conditional formula to work on what is actually showing in the cell? I have spent a lot of time trying all sorts of things and it is driving me nuts

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Try

    =IF(ISERROR(VLOOKUP(A3,'UNC SOH'!E$6:F$2000,2,0)),0,VLOOKUP(A3,'UNC SOH'!E$6:F$2000,2,0))

    ---
    Quote Originally Posted by AussieExcelUser
    I use conditional formatting to hide "0" in reports in order to make them clearer to read. This works well apart from cells whose value is the result of a lookup where, if an error is found, the formula returns a "0":

    =IF(ISERROR(VLOOKUP(A3,'UNC SOH'!E$6:F$2000,2,0)),"0",VLOOKUP(A3,'UNC SOH'!E$6:F$2000,2,0))

    How can I get the conditional formula to work on what is actually showing in the cell? I have spent a lot of time trying all sorts of things and it is driving me nuts

  3. #3
    Registered User
    Join Date
    03-09-2006
    Location
    Australia
    Posts
    80
    D'oh - so simple and obvious! Your solution worked a treat!!

    For the 2nd time this week, Bryan thanks so very much, you are indeed a champ

+ 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