+ Reply to Thread
Results 1 to 10 of 10

Conditional Format not working unless ex. b6 is $B$6

  1. #1
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Conditional Format not working unless ex. b6 is $B$6

    Hi All,

    I'm trying to conditional format a range of cells that reference =Master!$B$6=0. This works as intended, but if I wanted to use format paint to easily add to another range of cells I need it to look like: =Master!$C$6=0

    What is weird is if I do: =Master!B6=0 , not all cells within the range will format. I can't figure out why.

    Can someone take a peek and let me know where I have gone wrong ?

    Ron
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: Conditional Format not working unless ex. b6 is $B$6

    This works:

    =Master!$C$6=0
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Re: Conditional Format not working unless ex. b6 is $B$6

    Now if I want to use format paint to apply condition in Wednesday's range using D6=0 it doesn't do it automatically. I have to go into manage rules and adjust to d6.

    ultimate goal is for the day to be shaded if there is no requirement for Overtime that day. So only days that require 1+ people will be shown

    Is this possible ?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: Conditional Format not working unless ex. b6 is $B$6

    No, it won't do it automatically. The cells being referenced are in a contiguous horizontal row and you are expecting a non-contiguous vertical set-up to know which cell to use - that's not going to happen. Just set a rule for each day of the week - there are only seven days and once it's done, it's done.

  5. #5
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Re: Conditional Format not working unless ex. b6 is $B$6

    True, but I'll have over 80 tabs :-(
    Cumbersome, but I can poke away at it.

    Seeing as you have the spreadsheet, would you mind looking at my vba code. It's set up to hide, unhide tabs based on if there is an OT requirement.

    is there a better way to do the coding to reduce the number of lines? I've completed all the tabs for Mechanics, but I will have the same amount of sheets for Attendants and Body shop. This will make the VBA code extremely long. Wondering if there's a way to make what's there now, smaller or I can adjust the coding when I get the rest of the work completed.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: Conditional Format not working unless ex. b6 is $B$6

    Why not set up one tab with all the conditional formatting, then copy it?

    If you want someone to look at your VBA, please start a new thread in the VBA section with a suitable title.

    This thread needs marking as solved, please.

    Sorry - I don't do VBA at all.

  7. #7
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Re: Conditional Format not working unless ex. b6 is $B$6

    Why not set up one tab with all the conditional formatting, then copy it? - Not sure what your speaking about ? but sounds interesting ?

    Thank You for your help. I will mark as solved.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: Conditional Format not working unless ex. b6 is $B$6

    You said you have 80 tabs. I am suggesting that you create one with all the condtional formatting set up and then copy it 79 times instead of setting conditional formatting individually on 79 more tabs. Is that clear?

  9. #9
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Re: Conditional Format not working unless ex. b6 is $B$6

    Hmm, I think I have an idea what your saying. I'll give it a go.
    Thanks

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: Conditional Format not working unless ex. b6 is $B$6

    Sorry, I really don't know how to explain it any simpler.

+ 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] Conditional format - working with a +/- from given cell
    By Marvo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-19-2017, 04:06 AM
  2. [SOLVED] Conditional Format not working as expected
    By scudo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-10-2015, 10:44 AM
  3. [SOLVED] Conditional Format not working
    By Adam Schaefer in forum Excel General
    Replies: 1
    Last Post: 03-16-2015, 10:22 AM
  4. conditional format not working
    By Roger_the_Dodger_55 in forum Excel General
    Replies: 2
    Last Post: 03-07-2013, 07:56 PM
  5. conditional format not working
    By Roger_the_Dodger_55 in forum Excel General
    Replies: 2
    Last Post: 03-07-2013, 07:02 PM
  6. Conditional Format not working
    By additude in forum Excel General
    Replies: 20
    Last Post: 09-12-2008, 06:19 AM
  7. [SOLVED] Conditional Format Not Working
    By KMH in forum Excel General
    Replies: 0
    Last Post: 12-22-2005, 01:35 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