Is there a VBA code or excel function which can highlight the A cell based on the value of the corresponding B cell. For example if the number in row A is larger than B then highlight the A cell green and orange if B is larger. As shown
Is there some option to do this in conditional formatting? Or even a VBA code?
Add something like this using conditional formatting:
And then select the Format Painter and drag it along:
No need manual formatting. Just use full range containing data in
Apply To section.
As per your screenshot.
Use a formula to determine which cells to format.
Use formula like below screenshot.