Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Apply conditional formatting based on dates listed in row

$
0
0

I am trying to track support hours in a shared document and want to have the entire month turn red if the number of support hours allocated in the month exceed the client's allowance. The date of a task is entered on a row, along with a description of the task and the number of support hours used.

I am using the formula =IFERROR(SUM(FILTER(C2:C997,MONTH(A2:A997)=2)),0) to find the total number of hours used in a given month (we'll do a new one each year), and I want all rows with tasks created during that month to turn red if this total exceeds 50.

Date of taskTask informationHours used
11/1/24A task20
222/1/24Another task25
330/1/24A third task30
42/2/24A further task15
54/2/24Yet another task7
615/2/24Even more tasks18
729/2/24A leap task9

In the example, the tasks assigned in January total 75 hours, so rows 1, 2 and 3 should be highlighted in red. However, the tasks assigned in February only total 49, so those tasks in rows 4-7 should remain unaffected.

In the table I'm working on I've extracted the values of 75 and 49 to individual cells so I can conditionally format based on the value of those cells, but I'm struggling to find out how to define the range of the affected rows.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>