+ Reply to Thread
Results 1 to 22 of 22

Conditional Format Formula

  1. #1
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Conditional Format Formula

    I think I developed a brain lock. I have a conditional format formula comparing 2 cells. I need it to color red if the difference is >3¢ or < 3¢.
    Here is what I have: =(D19-F19)<>3
    Can someone please tell me what I am doing wrong.
    Posted this but no answer yet.
    https://www.mrexcel.com/forum/excel-...-new-post.html
    Thank you.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    What's in D:F? Is it currency ($0.00) or are you counting in pennies?
    3¢ = $0.03
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Format Formula

    < > means 'not equal to'
    What you want is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the figures are in € / $, then you'll probably want 0.03 instead of 3.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    D19 and F19 are both pennies. If the difference is >+3¢ or greater than -3¢, I need it to color red.
    Thanks

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    That worked on D19-F19 as the difference in the formula is 14¢, but when I copied it to F19-H19 it made it red, but the difference between those 2 cells was zero.
    Any other ideas?

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    Please Login or Register  to view this content.
    Last edited by protonLeah; 02-04-2017 at 02:38 AM.

  8. #8
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    Unfortunately that did not work either. Any other ideas? Would it help if I provided the sheet?

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    yes...please...

  10. #10
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    Did the attachment come through?
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    What I'm needing if their is a difference between week 1 and week2 usage/purchases of more than 3¢ or less than 3¢ is to format a color red.

  12. #12
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    which cells should be Cond. Formatted?

  13. #13
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    It would be F19 as compared to D19; G19 as compared to E19; H19 as compared to F19; I19 as compared to g19; J19 as compared to h19; k19 as compared to I19; L19 as compared to J19 and M19 as compared to K19.
    Thanks

  14. #14
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    The original post used D19 - F19. These values are %'s, 12% & 26% respectively, and the difference is: -15%
    If you want the conditional format to highlight values not within ±3% band, then wrt. week1 vs. week 2 try:
    Please Login or Register  to view this content.
    Also, in C19 you have ¢ Per Guest
    Should that be % per Guest?

  15. #15
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    No, the row above is %, but row 19 is measuring ¢ per guest. I had it formatted with the ¢, but the boss did not like that format. So, in my first comparison Week1 usage on carving meat ¢ per guest was 12¢ and week2 usage was 26¢ which is > 3¢ so that would need to be formatted red.
    Thank you and I hope you can help me.

  16. #16
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    So, is D19 12 cents (12/100 dollar) or 12/100 of a cent (12/10000 dollar!)? That decimal is confusing if you are actually counting pennies and not dollars.

  17. #17
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    Yes, it is 12¢ of a dollar. It is simply the usage $$/Meals which is this case usage is $1,390/11,762 meals resulting in 12¢ per guest.

  18. #18
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    1. I think that using that ¢ character in " ¢ cost per guest" is very misleading, given that the calculations are in dollars, e.g. D16.
    2. Since you are doing a division, there may be some roundoff problems.
    You can round each value in columns D/F (cost per guest) or just the remainders of the subtractions in the Cond. format formula:
    CFF:
    Please Login or Register  to view this content.
    Cond.Frmt for entire column D,F:

    Please Login or Register  to view this content.
    Applies to:
    =$D$19:$D$79,$F$19:$F$79

    which could be modified for Wl2:Wk3, Wk3:Wk4, etc.


    as the attached.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    Please tell me how to download as an attachment so I can open. When I open, it is a "php" format and it will not let me open.
    Thank you.

  20. #20
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Conditional Format Formula

    Please tell me how to download as an attachment so I can open. When I open, it is a "php" format and it will not let me open.
    Thank you.

  21. #21
    Registered User
    Join Date
    07-14-2013
    Location
    USA
    MS-Off Ver
    MS 365
    Posts
    97

    Re: Conditional Format Formula

    To download a file, click on the file you want to download. Then click on Save As, rename from attachment to something more meaningful, put a period after the file name and then type the Excel file extension that is showing the file being downloaded. Then click Open.

  22. #22
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Conditional Format Formula

    I've seen posts by members who use Firefox, Chrome, etc. who have that problem. I use Opera, and have never experienced it so I can't help.

+ 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] VBA to create a relative formula in a conditional format (rather than an absolute formula)
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2016, 08:00 AM
  2. Replies: 7
    Last Post: 03-24-2015, 07:44 AM
  3. formula help - conditional format to colour cell = count = formula
    By rangeruk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2015, 09:03 PM
  4. [SOLVED] Conditional Format Formula
    By Christopher135 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-04-2013, 09:18 PM
  5. [SOLVED] Formula/format base don another conditional format
    By ketteringjack in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-12-2012, 07:35 AM
  6. Conditional format with a formula
    By Rod (Brazil) in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  7. [SOLVED] Conditional format with a formula
    By Mike Echo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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