+ Reply to Thread
Results 1 to 7 of 7

If any cells c16:n16 = 1 then change fill color of b16

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    99

    If any cells c16:n16 = 1 then change fill color of b16

    I want to apply a conditional format to cell B16 to make the fill color change to another color.

    I can make it happen if I just use one single reference such as C16 but then I would have to create a conditional reference for the rest of the cells D16:N16

    What would the formula look like to change the color of the fill in cell B16 if any of the cells in range C16:N16 =1. It seems to me I need to be using an IF OR statement but I can't seem to get it to work.

    Thanks for the Help

  2. #2
    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: If any cells c16:n16 = 1 then change fill color of b16

    Hi,

    All you need do is create the CF with the formula

    =C16=1

    Then APPLY it to the range C16:N16
    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.

  3. #3
    Registered User
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: If any cells c16:n16 = 1 then change fill color of b16

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    All you need do is create the CF with the formula

    =C16=1

    Then APPLY it to the range C16:N16
    That would work to change cells C16:N16 a different color what I need to do is change B16 another color if any cell in the range of C16:N16 =1

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,934

    Re: If any cells c16:n16 = 1 then change fill color of b16

    Formula for CF:

    =COUNTIF($D16:$N16,1)

  5. #5
    Registered User
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: If any cells c16:n16 = 1 then change fill color of b16

    Quote Originally Posted by Phuocam View Post
    Formula for CF:

    =COUNTIF($D16:$N16,1)
    =COUNTIF($D16:$N16,1) did not workTried it with out $ also and no go.

  6. #6
    Registered User
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: If any cells c16:n16 = 1 then change fill color of b16

    Quote Originally Posted by nsmjc View Post
    =COUNTIF($D16:$N16,1) did not workTried it with out $ also and no go.
    Sorry its time for me to stop working =COUNTIF($D16:$N16,1) Does work if your type it correctly

    Thankyou for the help

  7. #7
    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: If any cells c16:n16 = 1 then change fill color of b16

    Hi

    Try

    =COUNTIF($D16:$N16,1)>=1

+ 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] Change a cells fill color. VBA to make another cell the same color and also changes.
    By PeteABC123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2016, 12:34 PM
  2. [SOLVED] Click oval option button to fill/unfill color, also change border color to match fill
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 08:29 PM
  3. [SOLVED] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  4. Hide and unhide rows will change the color fill of the specified cells
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2013, 10:03 PM
  5. Replies: 3
    Last Post: 07-08-2010, 06:48 PM
  6. IF 3 cells = (biggest value) then (change back fill color)
    By Nik_AU in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2007, 04:02 AM
  7. How to change a cells fill color???
    By gavsta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2005, 06:10 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