+ Reply to Thread
Results 1 to 13 of 13

Conditional Format Greater Then and Formula Less Then issues

  1. #1
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Conditional Format Greater Then and Formula Less Then issues

    I have a formula in Cell H14 to calculate a value
    Please Login or Register  to view this content.
    Then I have a conditional format for the same cell (H14).
    The conditional format is "If cell value is >H13" format the font red.

    The conditional format appears to work. Except for when the numbers are equal. I'm guessing it's because it really isn't equal. I have went out 30 decimal places and it shows all zeros. I have tried "TRUNC" and "ROUND" with no luck. Any ideas/suggestions?

    I also have another similar problem with this formula
    Please Login or Register  to view this content.
    It works, except when the values are equal (or appear to be).

    Thanks very much for your time and help!

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Conditional Format Greater Then and Formula Less Then issues

    Hi
    Try to use
    =IF(H14-G13)<=1E-13,"X","")

  3. #3
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Conditional Format Greater Then and Formula Less Then issues

    Hello Jose,
    Unfortunately, that did not work either.

    I have also tried the INT function for the other problem. I think it should work, but it doesn't
    Please Login or Register  to view this content.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Conditional Format Greater Then and Formula Less Then issues

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

  5. #5
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Conditional Format Greater Then and Formula Less Then issues

    I thought it worked...
    Not quite
    Last edited by Hood; 07-01-2016 at 10:39 AM.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,605

    Re: Conditional Format Greater Then and Formula Less Then issues

    It might help if you could attach the workbook or a sample workbook that exhibits the same behavior, so that we can see what is going on.
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    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,945

    Re: Conditional Format Greater Then and Formula Less Then issues

    I have tried "TRUNC" and "ROUND" with no luck.
    Like, how? Can you show what you tried?

    (you probably need to apply that to both sides of the equation)
    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

  8. #8
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Conditional Format Greater Then and Formula Less Then issues

    Quote Originally Posted by FDibbins View Post
    Like, how? Can you show what you tried?

    (you probably need to apply that to both sides of the equation)
    Sure... this is what I tried using TRUNC
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Conditional Format Greater Then and Formula Less Then issues

    Quote Originally Posted by FDibbins View Post
    Like, how? Can you show what you tried?

    (you probably need to apply that to both sides of the equation)
    Sure... this is what I tried using TRUNC
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Conditional Format Greater Then and Formula Less Then issues

    Quote Originally Posted by JeteMc View Post
    It might help if you could attach the workbook or a sample workbook that exhibits the same behavior, so that we can see what is going on.
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Ok... I have tried to attach the file.

    Thanks!
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,605

    Re: Conditional Format Greater Then and Formula Less Then issues

    Changing the formula in H13 as follows seems to correct the conditional formatting flaw in H14:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let me know if you have any questions.

  12. #12
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Conditional Format Greater Then and Formula Less Then issues

    That works...
    Thanks!!!

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,605

    Re: Conditional Format Greater Then and Formula Less Then issues

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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. Conditional Format two consecutive cells greater than a set target
    By andrewedwards in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2014, 09:14 AM
  2. Replies: 9
    Last Post: 02-16-2013, 10:11 PM
  3. Greater than equal to conditional format only if cell contains value - macro
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 07:50 PM
  4. Issues with colouring via conditional format
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-07-2012, 05:19 PM
  5. Conditional Format Macro Issues
    By metzgek in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2011, 03:52 PM
  6. Greater Than VB Conditional Format
    By chris01252 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2010, 12:44 PM
  7. [SOLVED] conditional format greater or less than
    By Micayla Bergen in forum Excel General
    Replies: 5
    Last Post: 05-03-2005, 02:06 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