I know it's possible for this, but I don't have the knowledge to figure out what to do. I have an excel spreadsheet that i want the cells to gradually change colours as the hours increase.

Starting at green for 1700 hours, amber at 1904, red at 1905 until it gets to 2000, from 2001 it changes back to green. I need this to be ongoing every 300 hours. I've listed below the column so you can see an example of the entries. Some days, no hours are entered.

I have tried copying a conditional formatting formula which I was given by another user which worked fine starting from zero.

Formula is here:

enter image description here

Green'=MOD(N5,300)=0'
Orange ="MOD(N4,300)=204'
Red=OR(MOD(N5,300)>205,MOD(N5,300)=1)

enter image description here

有帮助吗?

解决方案

You can try this:

Edit1:

=AND(MOD($N5-1700,300)<108,$N5<>"") '~~> GREEN
=MOD($N5-1700,300)>204 '~~> RED
=AND(MOD($N5-1700,300)>=108,MOD($N5-1700,300)<=204 '~~> ORANGE

This is the easiest i can come up with.
column N should contain numbers starting from 1700 only.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top