+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting formulae

  1. #1
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Conditional formatting formulae

    Good evening

    I have 2 cells to conditional format.

    If Cell Q6 has (14:50) (Time)

    H6 is the cell to be Cond formatted

    If cell H6 reads if Q6 has something in it, and if Cell H6 is displaying any number below 4, then display "ERROR" else blank H6
    On the error It is at this point the H6 will be filled with Red with White font.

    Please Login or Register  to view this content.
    One I have learnt over the last few months, " You are NEVER too old to learn ".
    Sometimes I forget to say " Thank You " for your assistance, so here I say " A BIG Thank You. "

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

    Re: Conditional formatting formulae

    Q6 is not bigger than one - 14:50 is a fraction of time that equates to 0.618055555555556.

    Perhaps if you change the test to either bigger than 0 or not equal to blank, so your CF rule would be:

    =AND($Q6>0,$H6<4)

    or:

    =AND($Q6<>"",$H6<4)

    You cannot return a value via conditional formatting. You can only do that directly in the cell using a conventional formula.
    Last edited by AliGW; 07-13-2019 at 08:08 AM.
    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 Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Re: Conditional formatting formulae

    Good Morning Ali

    I have attached my temp file to show how I get around the Conditional formatting.


    Regards

    Pierre
    Attached Files Attached Files

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

    Re: Conditional formatting formulae

    What do you mean by "get around the conditional formatting"? Where are we supposed to be looking exactly? Are you in need of help still, or just showboating?

  5. #5
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Re: Conditional formatting formulae

    Hi No Showboating here, Well I hope not,

    If you look at cell H6, when you enter 3 in there, and Q6 has a time in there H6 goes red.

    Even though I had the Conditional format for H6 I had "ERROR" as part of the formulae, I can see now
    why you said it is not possible, I must say here I am sorry for doubting you knowledge, IT WILL NOT HAPPEN AGAIN.

    Regards peter

    I will mark this as solved.

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

    Re: Conditional formatting formulae

    My point is this. The formula in F6 has nothing to do with conditional formatting. The conditional formatting rule in H6 is not actually correct, although by fluke it is working. It should be this:

    =AND($Q$6>0,$H$6<4)

+ 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] formulae in conditional formatting
    By sparrasmith in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2015, 10:21 AM
  2. [SOLVED] Compund formulae in conditional formatting
    By tonygg9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2014, 09:17 PM
  3. conditional Formatting based on if formulae.
    By mr_mead in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2013, 07:59 AM
  4. Conditional Formatting using Formulae
    By andrewc in forum Excel General
    Replies: 5
    Last Post: 04-07-2011, 11:20 AM
  5. Conditional formatting in formulae?
    By keelbolt in forum Excel General
    Replies: 3
    Last Post: 08-18-2010, 12:26 PM
  6. Nested functions in conditional formatting formulae
    By Joseph in forum Excel General
    Replies: 3
    Last Post: 10-20-2005, 07:05 PM
  7. Formulae, conditional formatting & macro security
    By Kevin Lucas in forum Excel General
    Replies: 7
    Last Post: 03-15-2005, 10: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