IF formula to outline Status in RED when 2 dates collide from the same variant/task
For example I need RED Status when HBM collides with another HBM from a different task and start at the same date. Basically need to avoid date clashed from the same task HBM with HBM, Excavating with Excavating clashes to be advised in RED of the clashes , however without automatically changing the dates. Picture for understanding. Also I need support with how to automatically change completion percentage for each variant.
Many thanks.
Best Answer
-
Hi @Relly
Do you need the tasks to show Red if the Start Date is anywhere within another task? Or is it only if the date is the exact same Start Date as another row?
If it's only the exact Start Date matching, you can use the following formula:
=IF(COUNTIFS([Assigned To]:[Assigned To], [Assigned To]@row, Start:Start, =Start@row) > 1, "Red")
However notice that rows 3 and 4 in my image above also clash with the first task, just later on. Same with the HBM second task. An alternative formula would be:
=IF(OR(COUNTIFS([Assigned To]:[Assigned To], [Assigned To]@row, Start:Start, <=Start@row, Finish:Finish, >=Start@row) > 1, COUNTIFS([Assigned To]:[Assigned To], [Assigned To]@row, Start:Start, >=Start@row, Finish:Finish, <=Finish@row) > 1), "Red")
In this instance, we're looking for if the current Start Date appears within another task with the same assigned category (so row 2, which shows red) OR if the current task spans across other tasks (the first Excavating row and the first HBM row).
In regards to automating the % complete, how do you know when a task is done? Do you have another status column on the sheet that users manually fill out to let you know?
Cheers!
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Answers
-
Need additional screenshot showing the column names for those columns.
-
Hi Mike, Thank you for your prompt reply. Please see attached the screenshot. Sorry it doesn't have to be outlined as long as indicates the status in red. Many thanks.
-
Hi @Relly
Do you need the tasks to show Red if the Start Date is anywhere within another task? Or is it only if the date is the exact same Start Date as another row?
If it's only the exact Start Date matching, you can use the following formula:
=IF(COUNTIFS([Assigned To]:[Assigned To], [Assigned To]@row, Start:Start, =Start@row) > 1, "Red")
However notice that rows 3 and 4 in my image above also clash with the first task, just later on. Same with the HBM second task. An alternative formula would be:
=IF(OR(COUNTIFS([Assigned To]:[Assigned To], [Assigned To]@row, Start:Start, <=Start@row, Finish:Finish, >=Start@row) > 1, COUNTIFS([Assigned To]:[Assigned To], [Assigned To]@row, Start:Start, >=Start@row, Finish:Finish, <=Finish@row) > 1), "Red")
In this instance, we're looking for if the current Start Date appears within another task with the same assigned category (so row 2, which shows red) OR if the current task spans across other tasks (the first Excavating row and the first HBM row).
In regards to automating the % complete, how do you know when a task is done? Do you have another status column on the sheet that users manually fill out to let you know?
Cheers!
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
-
The first formula works perfectly . I am beyond happy. Thank you very much Genevive!
-
Glad I could help! 🙂
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 144 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!