+ Reply to Thread
Results 1 to 6 of 6

Conditional format to all cells if at least one of them meets criteria

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Conditional format to all cells if at least one of them meets criteria

    Hi gurus,

    Easy part:

    Lets say we have small table with data based on time (hour by hour). Every hour a few tasks are live. One column is for tasks, another contains a dropdown with "Completed" and "In progress". If completed - task name will go green, if in progress - red.

    Tricky part:

    As soon as at least one task is marked as "Completed", I want all entries for that task to go green and "Completed".

    Look at the dummy. It is more visible than all the text above.

    Thanks guys!
    Attached Files Attached Files
    Last edited by ABSTRAKTUS; 11-24-2010 at 04:04 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional format to all cells if at least one of them meets criteria

    This conditional formula applied to D5:D29

    =COUNTIFS($D$5:$D$29,$D5,$E$5:$E$29,"Completed")>0

    would colour all when 1 or more are marked "Completed"
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Conditional format to all cells if at least one of them meets criteria

    Great! Thanks!

  4. #4
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Conditional format to all cells if at least one of them meets criteria

    Hi again!

    I just discovered that this formula doesn't work on 2003 version. Any ideas why?

    Thanks

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional format to all cells if at least one of them meets criteria

    Because COUNTIFS was introduced in Excel 2007.

    For 2003 version try:


    =SUMPRODUCT(--($D$5:$D$29=$D5),--($E$5:$E$29="Completed"))>0

  6. #6
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Conditional format to all cells if at least one of them meets criteria

    Thanks mate again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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