+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Colours Using 'AND' formula.

  1. #1
    Registered User
    Join Date
    07-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Conditional Formatting Colours Using 'AND' formula.

    Hi, I'm having a problem with formatting cells on an excel sheet based on a value in a merged cell on another sheet. My requirement is to colour RED for values 0-5, AMBER for values >5 and <=10 and GREEN for values >10. I have managed to get this to work (using 'Use a formula to determine which cells to format') for the RED and GREEN rules as follows:

    RED: ='Operating Model Assessment 1'!$L$6:$L$11<=5

    GREEN: ='Operating Model Assessment 1'!$L$6:$L$11>10

    My problem is with AMBER. I'm using the following: =AND('Operating Model Assessment 1'!$L$6:$L$11>5,'Operating Model Assessment 1'!$L$6:$L$11<=10)

    I'm not getting any errors but I'm also not getting the colour changing to AMBER as I am with RED and GREEN. Can anyone suggest why this is not working?

    ('Operating Model Assessment 1' is the name of the sheet I am referencing and '$L$6:$L$11' references the merged cell in that sheet which contains a decimal value between 0 and 15).

  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,418

    Re: Conditional Formatting Colours Using 'AND' formula.

    Welcome to the forum.

    Why are you looking at entire ranges in these formulae? If L6:L11 are merged, you only need to reference L6.
    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
    Registered User
    Join Date
    07-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Re: Conditional Formatting Colours Using 'AND' formula.

    Hi AliGW. Thank you so much for your reply. I've switch to referencing a single cell (i.e. L6) and the formula now works so that has solved my problem very quickly. Many thanks.

    The reason I initially had the range was that when I clicked in the cell to add the cell reference to the formula the full reference was added (i.e. 'Operating Model Assessment 1'!$L$6:$L$11). Nevermind though as I will remember your advice for future and ensure to change this to the single merged cell reference.

    Thank you and best wishes.

  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,418

    Re: Conditional Formatting Colours Using 'AND' formula.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Registered User
    Join Date
    07-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Re: Conditional Formatting Colours Using 'AND' formula.

    Done. Thanks.

+ 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 Formatting, Colours conditions
    By TiagoDias in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2018, 10:16 AM
  2. Replies: 7
    Last Post: 07-17-2015, 01:21 PM
  3. [SOLVED] Conditional Formatting - Colours
    By caziscarol in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2014, 05:59 PM
  4. Replies: 1
    Last Post: 05-08-2013, 08:49 AM
  5. Macro for formatting fonts and cell colours - not Conditional Formatting
    By Kayaness in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2011, 03:46 AM
  6. Conditional Formatting different colours in cells
    By Georgefluff in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-02-2008, 07:04 AM
  7. Conditional Formatting Counting Colours
    By DMc2004 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2005, 10:06 AM

Tags for this Thread

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