Forum Discussion
DON4711
Jan 10, 2024Copper Contributor
Conditional Formatting
Please help! I got this to work about 10 years ago but with copying/pasting to a new worksheet each year the format disappeared somewhere and I'm lost! Columns as follows: Name, Opening Balance,...
- Jan 10, 2024correct that is the problem. The formula is ONLY $D1=0. Basically the formula is based on ONLY the top left most cell. As Excel moves to other cells down or to the right it will internally update the formula ranges accordingly. So $D1 means always use column D but as Excel looks down at row 2 it will also use $D2 and some for row 3,4,.... but that is all internal. Write the formula as if you are doing it for the upper left cell ONLY but plan on copying/filling down/right.
mtarler
Jan 10, 2024Silver Contributor
This should use a 'custom formula' under conditional formatting and that formula should be something like:
=$D1=0
that assumes the 'Applied To' range is A1:Axxx and the closing balance is in column D
basically the $ isn't needed but if you wanted the whole row to get highlighted or multiple cells on that row, then the $ would be needed.
If your applied to range starts on row 2 then =$D2=0 (basically the row listed in the formula should match the first cell in the applied to range.
- DON4711Jan 10, 2024Copper ContributorHI Mtarler
I can get the formula to operate on a single line but when I apply it to a column nothing works. Using =$D$1:$D25=0
Appreciate your input- mtarlerJan 10, 2024Silver Contributorcorrect that is the problem. The formula is ONLY $D1=0. Basically the formula is based on ONLY the top left most cell. As Excel moves to other cells down or to the right it will internally update the formula ranges accordingly. So $D1 means always use column D but as Excel looks down at row 2 it will also use $D2 and some for row 3,4,.... but that is all internal. Write the formula as if you are doing it for the upper left cell ONLY but plan on copying/filling down/right.
- DON4711Jan 10, 2024Copper ContributorThanks for your reply but I can't get it to print 'Apple' in red