thegurumonkey
New Member
- Joined
- Sep 18, 2015
- Messages
- 13
Hi
This is some very weird behaviour. A formula shows the correct 'TRUE/FALSE' in a helper column, but doesn't work in conditional formatting!
i'm trying to colour items in a column from the row of today (whose number is in $b$1) to the row where we run out of stock (number of items in stock defined in rr$1)
My initial effort was:
=SUM(INDEX(RR:RR,$B$1):RR159)<RR$1
is the version of the formula applied to cell rr159
which does the trick in cells, but won't work in conditional formatting. a warning comes up, but i don't understand which part of this type of formula it won't accept.
Anyway, though i usually try to avoid indirect, i got it to work for this column with:
=SUM(INDIRECT("rr"&$B$1&":"&"rr"&ROW(rr159)))<rr$1
but then when i made it reference the column letters (in row 255) so it could be applied across multiple columns thusly:
=AND( SUM(INDIRECT(rr$255&$B$1&":"&rr$255&ROW(rr159)))<rr$1 ,COUNTBLANK(rr$1)=0)
it applies said formula to the whole column, despite the same formula showing the correct '"TRUE/FALSE" values when applied to a helper column beside the data...
I'm stumped... any help muchos appreciatos
This is some very weird behaviour. A formula shows the correct 'TRUE/FALSE' in a helper column, but doesn't work in conditional formatting!
i'm trying to colour items in a column from the row of today (whose number is in $b$1) to the row where we run out of stock (number of items in stock defined in rr$1)
My initial effort was:
=SUM(INDEX(RR:RR,$B$1):RR159)<RR$1
is the version of the formula applied to cell rr159
which does the trick in cells, but won't work in conditional formatting. a warning comes up, but i don't understand which part of this type of formula it won't accept.
Anyway, though i usually try to avoid indirect, i got it to work for this column with:
=SUM(INDIRECT("rr"&$B$1&":"&"rr"&ROW(rr159)))<rr$1
but then when i made it reference the column letters (in row 255) so it could be applied across multiple columns thusly:
=AND( SUM(INDIRECT(rr$255&$B$1&":"&rr$255&ROW(rr159)))<rr$1 ,COUNTBLANK(rr$1)=0)
it applies said formula to the whole column, despite the same formula showing the correct '"TRUE/FALSE" values when applied to a helper column beside the data...
I'm stumped... any help muchos appreciatos