Reputation: 271
I have a column which has time values which will either be a positive or a negative figure. I want the negative time values to be in red. The format of these cells is 'Custom' and then '[h]:mm:ss'. I have added the negative '-' prefix using the CONCAT
function:
=IF(H3="Yes",CONCAT("-",F3),F3)
When selecting 'if less than 0' in the conditional formatting, the negative cells aren't being highlighted. I am guessing this is because I have simply prefixed the time values with a '-' prefix rather than it actually being a negative time. I am unsure how to enable the conditional formatting to work?
Here is a sample of the data:
Columns are E, F, and G from left to right
Upvotes: 0
Views: 7600
Reputation: 8043
Upvotes: 1