+ Reply to Thread
Results 1 to 9 of 9

Conditional Format multiple rows with colour

  1. #1
    Forum Contributor
    Join Date
    09-19-2018
    Location
    England
    MS-Off Ver
    O365
    Posts
    266

    Conditional Format multiple rows with colour

    Good morning all

    I'm trying to get a conditional format to work on a column for multiple rows.

    Basically if all the rows say Closed a column will highlight green with the word passed. If one of the rows has the word open in it the column will go amber and have the word fail.

    Is this possible at all?

    I have tried to attached an example.

    Thanks in advance
    Attached Files Attached Files
    Last edited by MattExcelLearner; 09-19-2018 at 06:27 AM. Reason: [SOLVED]

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Format multiple rows with colour

    By "If one of the rows has the word open" you really mean "if AT LEAST one of the rows has the word open" ?

    in C19
    =IF(COUNTIF(C2:C16,"Closed")=15,"Passed","Failed")

    Select C2:C16

    Conditional Formatting
    New Rule
    Use a formula to determine...

    2 colours required so 2 formulas needed

    =C$19="Passed"
    format as green

    =C$19="Failed"
    format as amber
    Last edited by Special-K; 09-19-2018 at 05:11 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    09-19-2018
    Location
    England
    MS-Off Ver
    O365
    Posts
    266

    Thumbs up Re: Conditional Format multiple rows with colour

    Thanks Special-K


    This worked a charm:

    in C19
    =IF(COUNTIF(C2:C16,"Closed")=15,"Passed","Failed")

    However, with the colouring which formula should I use for the text to make the colours work, sorry new to this.

    Many thanks


  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Format multiple rows with colour

    Did you try the Conditional Formatting instructions as suggested?
    Just follow the instructions as given.

    You want the column highlighted from C2:C16, either green or amber, yes?
    "if all the rows say Closed a column will highlight green"
    The Conditional Formatting formula to turn the column green/amber are in the instructions above.

  5. #5
    Forum Contributor
    Join Date
    09-19-2018
    Location
    England
    MS-Off Ver
    O365
    Posts
    266

    Re: Conditional Format multiple rows with colour

    I did but got in a muddle. (Easily done)

    So yes the c19 box that now states pass or fail depending on the above to go green for pass or amber for fail I'm trying to do.

    So I selected C2:C16 then clicked on conditional formatting and then new rule.

    From there loads of options came up and which one I wasn't sure which to use to put the 2 new formulas in to add colour

    =C$19="Passed"
    format as green

    =C$19="Failed"
    format as amber

    If that makes any sense?

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Format multiple rows with colour

    So what do you want to green/amber?

    JUST C19 or the C2:C16 range?

    Because you said "a column will highlight green".
    C19 is a cell. If you just want that cell to highlight green then you should say "cell" not "column"

    If you just want C19 to change green/amber then just select C19 in my instructions, not C2:C16

  7. #7
    Forum Contributor
    Join Date
    09-19-2018
    Location
    England
    MS-Off Ver
    O365
    Posts
    266

    Re: Conditional Format multiple rows with colour

    Yeah just the c19 cell, the whole columns with Open or Closed sounds even trickier.

    The attached is what is happening to me.

    Thanks
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Format multiple rows with colour

    Thats not what I said, is it.

    You've selected "Format cells that only contain"
    I said use the option "Use a formula to determine..." which is at the bottom of that list.

    Do that and it will work.

    Or change your exsiting method so it reads

    Cell value equal to Failed

    Same for the other formula only change it to Passed

  9. #9
    Forum Contributor
    Join Date
    09-19-2018
    Location
    England
    MS-Off Ver
    O365
    Posts
    266

    Re: Conditional Format multiple rows with colour

    Sorry I didn't realise, I'm still finding my way around.

    Using the Determine it worked

    Sweet, actually achieved something in Excel today.

    Many thanks for all your help and understanding in helping me sort this, much appreciated

    Until another Excel issue I have, all the best.

+ 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] Conditional format across multiple rows
    By sick stigma in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2017, 06:14 PM
  2. Replies: 2
    Last Post: 08-17-2016, 09:20 AM
  3. Replies: 1
    Last Post: 05-24-2014, 04:42 AM
  4. Conditional format for multiple rows
    By DrStrangepork in forum Excel General
    Replies: 1
    Last Post: 10-15-2012, 08:01 PM
  5. Replies: 4
    Last Post: 12-17-2011, 06:11 PM
  6. Replies: 2
    Last Post: 08-03-2010, 10:12 AM
  7. Conditional Format colour
    By meridklt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-04-2007, 05:19 PM

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