+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP / Conditional Formatting - How to Apply if Results = 0

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    VLOOKUP / Conditional Formatting - How to Apply if Results = 0

    I have a VLOOKUP Formula that spits out a value that is then conditionally formatted based on the result of the value. This works great to a name that has a value to lookup, but what about a name that doesn't have a value to lookup?

    My VLOOKUP formula = =IFERROR(VLOOKUP(C13,'Draft Board'!C:I,7,0),"0")

    My Conditional format = =DN13>0

    I have 10 names on Sheet 2 in my workbook, 8 of which are on Sheet 1. How do I get the remaining two names that aren't on Sheet 1 but still have a VLOOKUP formula attached to them to apply to the conditional format rules. Their value in the VLOOKUP is showing zero because their value comes back with an error but I formatted that in my formula to = 0 so shouldn't the conditional format ignore those two names because it should only conditionally format if the value is greater than zero?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    01-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    240

    Re: VLOOKUP / Conditional Formatting - How to Apply if Results = 0

    Remove the ""

    i.e.

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


    not

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please consider adding a * if I helped.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP / Conditional Formatting - How to Apply if Results = 0

    Just to add into what Brendan said...
    When you use "" to enclose a value, you convert it to text - and excel then (generally) will not recognise it as a number. Having said that, excel considers and text to have a value higher than any value...so A will be higher than 50 etc
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: VLOOKUP / Conditional Formatting - How to Apply if Results = 0

    Quote Originally Posted by Brendan_Floyde View Post
    Remove the ""

    i.e.

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


    not

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Perfect thanks!

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: VLOOKUP / Conditional Formatting - How to Apply if Results = 0

    Quote Originally Posted by FDibbins View Post
    Just to add into what Brendan said...
    When you use "" to enclose a value, you convert it to text - and excel then (generally) will not recognise it as a number. Having said that, excel considers and text to have a value higher than any value...so A will be higher than 50 etc
    Great thanks for the heads up!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP / Conditional Formatting - How to Apply if Results = 0

    Happy to help, thanks for the feedback

+ 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. [SOLVED] Vlookup formula to select and highlight (conditional formatting) multiple results
    By hbomb1927 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 03:27 PM
  2. Replies: 1
    Last Post: 12-11-2012, 08:55 AM
  3. [SOLVED] Want to apply conditional formatting
    By mshtuhin in forum Excel General
    Replies: 5
    Last Post: 07-04-2012, 07:41 AM
  4. Replies: 1
    Last Post: 11-12-2010, 03:18 PM
  5. Replies: 4
    Last Post: 01-11-2010, 01:07 PM

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