+ Reply to Thread
Results 1 to 13 of 13

conditional format cells colours based on an other cell

  1. #1
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    conditional format cells colours based on an other cell

    hi guys

    i have a spreadsheet that contains a lot of information, i am after changing the colour of a range of cells based on one cell

    i have a cell that counts down between two dates using this formula =DATEDIF(C5,D6,"d")

    once that cell gets down to zero it shows num!

    i can that get that cell to colour red using conditional format when cell shows an error, however the big question is how do i get it to colour the row and not just that once cell

    thanks guys

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: conditional format cells colours based on an other cell

    Use "use formula" and apply it to the entire range. Make sure you partial-absolute the cell ref though, something like $A1.

    Note also, that if you haved a LOT of data, CF can slow things down a bit
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: conditional format cells colours based on an other cell

    Quote Originally Posted by mickgibbons1 View Post
    how do i get it to colour the row and not just that once cell
    Tell us exactly which cells you want to apply the formatting to and which cell contains the formula.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Re: conditional format cells colours based on an other cell

    Tony

    A6 - E6

    the formula is in E6, (which shows Num! once date counted down

  5. #5
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Re: conditional format cells colours based on an other cell

    Fdibbens

    i have a lot going on in the spreadsheet, but lucky its a info based spreadsheet and does not get updated that much

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: conditional format cells colours based on an other cell

    OK. did you try my suggestion?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: conditional format cells colours based on an other cell

    Try this...

    Select the *entire* range A6:E6 starting from cell A6.
    Cell A6 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =ISERROR($E6)

    Click the Format button
    Select the desired style(s)
    OK out

  8. #8
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Re: conditional format cells colours based on an other cell

    mate i understand i need to do a formula but i am not sure how that will go

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: conditional format cells colours based on an other cell

    Quote Originally Posted by mickgibbons1 View Post
    mate i understand i need to do a formula but i am not sure how that will go
    Can't tell who you're replying to?

  10. #10
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Re: conditional format cells colours based on an other cell

    tony, Fdibbens

    thank you both for your replays and help, works great. thank you

  11. #11
    Forum Contributor
    Join Date
    02-21-2013
    Location
    newcastle
    MS-Off Ver
    2011
    Posts
    111

    Re: conditional format cells colours based on an other cell

    tony,

    sorry mate your formula worked a treat thank you for taking the time to help

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: conditional format cells colours based on an other cell

    You're welcome. Thanks for the feedback!

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: conditional format cells colours based on an other cell

    Happy to help

+ 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] Format colour of cells based on other cell - 34 colours
    By Graham Tritton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2006, 10:10 PM
  2. Create conditional IF to format cells using 6 different colours
    By NZJen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  3. [SOLVED] Create conditional IF to format cells using 6 different colours
    By NZJen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  4. [SOLVED] Create conditional IF to format cells using 6 different colours
    By NZJen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. Create conditional IF to format cells using 6 different colours
    By NZJen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12: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