Hi,
I'm trying to add a "traffic light" conditional format based on four separate date cells for a plant hire schedule.
These four cells are Date On, Date Off, Date Suspended From, and Date Suspended To.
What I want to achieve is:
- A Green light if today's date is greater than or equal to the Date On cell and not greater than the Date Off cell, indicating the plant is ON hire.
- An Amber light if today's date is equal to the same formula as the green light, but also greater than or equal to the Suspended From date, and not greater than the Suspended To date, indicating the plant is SUSPENDED.
- A Red light if today's date is outside the Date On and Date Off cells, indicating the plant is OFF hire.
The Date Off cell will remain blank until the plant is off hired.
The Suspended To date will also remain blank until the end of the suspension period.
I've tried various methods of achieving this.
I've tried the Traffic light function within one cell, as well as trying three different cells - one for each status.
I've tried inputting formula in 3 separate cells to return the values 0,1, or 2 depending on status.
So far I've played about with IF functions for the On/Off dates along with AND to add the Suspended dates.
I'm not that experienced with more complex formulae/functions, and don't know what else may work.
Here's an example of my date columns, and what should be their current status.
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]Current Status[/TD]
[TD]Hire On[/TD]
[TD]Hire Off[/TD]
[TD]Suspended From[/TD]
[TD]Suspended To[/TD]
[/TR]
[TR]
[TD]*Green*[/TD]
[TD]01/07/2014[/TD]
[TD][/TD]
[TD]12/07/2014[/TD]
[TD]15/07/2014[/TD]
[/TR]
[TR]
[TD]*Red*[/TD]
[TD]20/07/2014[/TD]
[TD]25/07/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]*Amber*[/TD]
[TD]20/07/2014[/TD]
[TD][/TD]
[TD]28/07/2014[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any help would be greatly appreciated.
Sorry for the long post, and I hope I've explained myself clearly.
Thanks in advance.
I'm trying to add a "traffic light" conditional format based on four separate date cells for a plant hire schedule.
These four cells are Date On, Date Off, Date Suspended From, and Date Suspended To.
What I want to achieve is:
- A Green light if today's date is greater than or equal to the Date On cell and not greater than the Date Off cell, indicating the plant is ON hire.
- An Amber light if today's date is equal to the same formula as the green light, but also greater than or equal to the Suspended From date, and not greater than the Suspended To date, indicating the plant is SUSPENDED.
- A Red light if today's date is outside the Date On and Date Off cells, indicating the plant is OFF hire.
The Date Off cell will remain blank until the plant is off hired.
The Suspended To date will also remain blank until the end of the suspension period.
I've tried various methods of achieving this.
I've tried the Traffic light function within one cell, as well as trying three different cells - one for each status.
I've tried inputting formula in 3 separate cells to return the values 0,1, or 2 depending on status.
So far I've played about with IF functions for the On/Off dates along with AND to add the Suspended dates.
I'm not that experienced with more complex formulae/functions, and don't know what else may work.
Here's an example of my date columns, and what should be their current status.
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]Current Status[/TD]
[TD]Hire On[/TD]
[TD]Hire Off[/TD]
[TD]Suspended From[/TD]
[TD]Suspended To[/TD]
[/TR]
[TR]
[TD]*Green*[/TD]
[TD]01/07/2014[/TD]
[TD][/TD]
[TD]12/07/2014[/TD]
[TD]15/07/2014[/TD]
[/TR]
[TR]
[TD]*Red*[/TD]
[TD]20/07/2014[/TD]
[TD]25/07/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]*Amber*[/TD]
[TD]20/07/2014[/TD]
[TD][/TD]
[TD]28/07/2014[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any help would be greatly appreciated.
Sorry for the long post, and I hope I've explained myself clearly.
Thanks in advance.