Forum Discussion
Trying to use conditional formatting to color the space between two data entries.
- Sep 24, 2017
Hello,
I suggest you use a helper column with this formula, starting in F3 and copied down:
=IF(ISNUMBER(B3),"occupied",IF(ISNUMBER(D2),"vacant",IF(F2="occupied","occupied","vacant")))
That will give you a column of values of "occupied" or "vacant". You can then use conditional formatting with a formula for columns B to E. (By the way, avoid merging cells like that. It can lead to problems).
The conditional formatting formula is
=$F3="occupied"
You can then hide column F, so it does not show in the sheet.
Hello,
I suggest you use a helper column with this formula, starting in F3 and copied down:
=IF(ISNUMBER(B3),"occupied",IF(ISNUMBER(D2),"vacant",IF(F2="occupied","occupied","vacant")))
That will give you a column of values of "occupied" or "vacant". You can then use conditional formatting with a formula for columns B to E. (By the way, avoid merging cells like that. It can lead to problems).
The conditional formatting formula is
=$F3="occupied"
You can then hide column F, so it does not show in the sheet.