+ Reply to Thread
Results 1 to 12 of 12

Conditional Format not working properly

  1. #1
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Conditional Format not working properly

    I have a sheet that calculates overtime. One cell, U11, shows my total OT. When accounting for my OT I can split it into three different categories in cells X11, Y11, & Z11.
    What I'm trying to accomplish... I manually input totals into X, Y, & Z, when they equal U, I want X, Y, & Z to turn Green as a visual indicator that I've accounted for all my OT.

    I can not get this to work. If I manually type in my OT in U11 the conditional formatting works, but if I let the formulas calculate my OT in U11, the conditional formatting does not work.

    This worked for me previously when we tracked time in tenths, but we switched to minutes and after I've adjusted my sheet for this I can't get it to work.

    I've attached the sheet that I'm working on. I've only been working on row 11 with the intent of copying everything down once I figure it out.
    Attached Files Attached Files

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

    Re: Conditional Format not working properly

    Try this formula for your green CF:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB
    Last edited by BadlySpelledBuoy; 04-11-2018 at 04:27 AM.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Conditional Format not working properly

    Change U11 to =IF(P11="","",ROUND(P11-T11,5))

    Use this as the CF formula:
    =U11=ROUND((X11+Y11+Z11)/60/24,5)

    HOWEVER, I strongly recommend that you kill ALL those merged rows 11&12, 13&14, etc. This is will make your life very difficult, sooner or later. Merged cells are best vaoided int he body of your data.... always. if you want the row height to be bigger, then change the row height... don't merge rows to achieve the same effect.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Conditional Format not working properly

    That worked partially... It changed the color of X11 only. I've checked three times, the CF is applied to X11:Z12??

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

    Re: Conditional Format not working properly

    I've edited the formula in post #2. I hadn't added the $s.

    I agree with Mr Kennedy, those merged cells appear to serve no purpose so best to get rid of them and simply increase the row height to give the same visual feel (if that's why you've done it).

    BSB

  6. #6
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Conditional Format not working properly

    I agree with you. I should have done that this time around. I'm modifying someone else's sheet. I'll do that prior to copying everything down.
    I have the same issue with your suggestion too, it works but only for X11.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Conditional Format not working properly

    BSB.... Mr Kennedy... how formal!!

    Yes, I forgot the $s in mine, too...

    =IF(P11="","",ROUND(P11-T11,5)) is OK, but the other one should have been:

    =$U11=ROUND(($X11+$Y11+$Z11)/60/24,5)

  8. #8
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Conditional Format not working properly

    That did the trick. How does making the cells have a absolute reference for the column make the difference?

    Thank you both very much for your help. This has been killing me all evening.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Format not working properly

    Quote Originally Posted by jme1013 View Post
    That did the trick. How does making the cells have a absolute reference for the column make the difference?

    Thank you both very much for your help. This has been killing me all evening.
    If you don't 'fix' columns X:Z, when you use the CF in column U:W or elsewhere then the value of U11:W11 is used
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Conditional Format not working properly

    Effectively you're applying the same formula to each column and if you don't absolute ref the columns then it will look at different columns in each, meaning:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    would become:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Hopefully you can see from that why your conditional formatting only worked in the first column without the $s.

    BSB

  11. #11
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Conditional Format not working properly

    So basically, even though I told the CF to to apply the formatting to X11:Z11, it keeps adjusting the formula for each column. Much like dragging a formula in a cell without an absolute reference. I just can't see it in the CF.

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

    Re: Conditional Format not working properly

    Exactly that.

    BSB

+ 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 cell formatting not working properly
    By luv2glyd in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-06-2017, 12:49 AM
  2. [SOLVED] Conditional Formatting not working properly
    By Hodge1013 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-23-2015, 07:42 PM
  3. [SOLVED] Macro not working properly for conversion of date format
    By abraham30 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2014, 10:46 AM
  4. Conditional Formatting Formula Not Working Properly
    By Oscar Martin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2014, 08:59 AM
  5. [SOLVED] Conditional Formats Not Working Properly When Copied
    By Oscar Martin in forum Excel General
    Replies: 2
    Last Post: 01-28-2014, 01:48 PM
  6. Conditional formatting not working properly
    By mlucey01 in forum Excel General
    Replies: 4
    Last Post: 01-08-2013, 08:35 PM
  7. [SOLVED] Conditional Formatting using VBA - Code not working properly
    By Tejas.T in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2012, 10:19 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