+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting question

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Derbyshire, England
    MS-Off Ver
    Excel 2016
    Posts
    52

    Conditional Formatting question

    Hi all, thanks for looking at my question.

    I am trying to conditionally format a cell based on the number in the cell.

    I'm sure its just a simple formula but I cannot work it out. It maybe I need two rules, I have tried but it seems to fail each time.

    What I want is for the cell to turn red if the value is NOT equal to 45, and to remain unformatted if it is 45, or no input ("").

    Row 1 has header notes, I would like this formatting from cell G2:G5000

    Any help greatly appreciated.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Conditional Formatting question

    Try:

    (G2<>45)*(G2<>"")

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Derbyshire, England
    MS-Off Ver
    Excel 2016
    Posts
    52

    Re: Conditional Formatting question

    Quote Originally Posted by Phuocam View Post
    Try:

    (G2<>45)*(G2<>"")
    That works perfectly, thank you.
    Can you tell me what the * is doing in this situation please?

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Conditional Formatting question

    (G2<>45) returns a true or false
    (G2<>"")returns a true or false

    true * true =true (1)
    true*false=false (0)
    false*true=false (0)
    false * false=false (0)

  5. #5
    Registered User
    Join Date
    11-07-2013
    Location
    Derbyshire, England
    MS-Off Ver
    Excel 2016
    Posts
    52

    Re: Conditional Formatting question

    Quote Originally Posted by davsth View Post
    (G2<>45) returns a true or false
    (G2<>"")returns a true or false

    true * true =true (1)
    true*false=false (0)
    false*true=false (0)
    false * false=false (0)
    Thanks davsth, simple and effective, I've been using Excel for years and I love it when you find out new stuff.

+ 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 Question
    By kevindorward in forum Excel General
    Replies: 4
    Last Post: 06-19-2017, 02:24 PM
  2. Conditional Formatting Question
    By swalsh^s96 in forum Excel General
    Replies: 6
    Last Post: 04-27-2016, 12:22 PM
  3. Conditional Formatting Question
    By Killer17 in forum Excel General
    Replies: 7
    Last Post: 11-02-2008, 10:14 PM
  4. conditional formatting question
    By fujimi-cho in forum Excel General
    Replies: 7
    Last Post: 10-22-2007, 03:29 AM
  5. Another conditional formatting question
    By jonnylew in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2007, 03:34 PM
  6. Conditional formatting question
    By Dodo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] Conditional formatting question
    By Dodo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04: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