+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting is not applying to an IFError formula result.

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    Conditional Formatting is not applying to an IFError formula result.

    Hello,

    I have the formula =IFERROR(COUNTIFS(Table1[Week Due Hidden],(WEEKNUM(NOW())),Table1[Closed On-time],"Yes")/(COUNTIFS(Table1[Week Due Hidden],(WEEKNUM(NOW())),Table1[Closed On-time],"Yes")+(COUNTIFS(Table1[Week Due Hidden],(WEEKNUM(NOW())),Table1[Closed On-time],"No"))),"0") When it returns the "0" value I wanted it to be formatted with a Red fill.

    I used the conditional formatting formula, Cell Value < 1
    How is 0 not less than one? Is there something about the IfError function that negates conditional formatting?

    Thanks for any and all assistance.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Conditional Formatting is not applying to an IFError formula result.

    The formula returns the text '0' not the number 0, remove the double quotes around 0 in the formula.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Conditional Formatting is not applying to an IFError formula result.

    Try with the zero at the end of the formula NOT in quotes.

    When it is, it's effectively a text value and Excel decides that's greater than 1.

    BSB.

  4. #4
    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
    52,939

    Re: Conditional Formatting is not applying to an IFError formula result.

    CF works only TRUE or FALSE, so by including IFERROR() in your formula, you are forcing a TRUE. Remove the IFERROR and it should work
    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

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting is not applying to an IFError formula result.

    NeverMind..

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Conditional Formatting is not applying to an IFError formula result.

    Isn't the formula the OP posted on the worksheet?

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting is not applying to an IFError formula result.

    Quote Originally Posted by Norie View Post
    Isn't the formula the OP posted on the worksheet?
    Yes, that's the way I read it. And why I removed my previous comment..

    The formula is in a Cell.
    Then the conditional formatting is using Cell Value is Less Than 1

  8. #8
    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
    52,939

    Re: Conditional Formatting is not applying to an IFError formula result.

    OK yes, I read it that way now too.

    So, remove the IFERROR and then put that formula as AS the CF rule

  9. #9
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    Re: Conditional Formatting is not applying to an IFError formula result.

    Oh Right...I always forget that excel takes quotes as text.

    Norie and BadleySpelledBuoy Thank you both!

+ 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. Wrong result displaying using IFERROR-INDEX-MATCH-ROW Formula
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-16-2013, 01:03 PM
  2. Conditional formatting on non-empty cells - VBA
    By kotonikak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2013, 02:57 PM
  3. [SOLVED] Conditional Formatting to evaluate formula result not cell value
    By snoproladd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2012, 11:11 PM
  4. [SOLVED] Conditional Formatting Against a Formula - not it's result
    By Mike The Newb in forum Excel General
    Replies: 3
    Last Post: 08-10-2006, 05:40 PM
  5. [SOLVED] conditional formatting based on another cells formula result
    By kstarkey in forum Excel General
    Replies: 3
    Last Post: 10-05-2005, 05:05 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