Color cells that have a value lower than a reference value

mcva

New Member
Joined
Apr 20, 2020
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hi
I have a simple problem to solve. I have tried conditional formatting with a formula but it doesn't work. The table has 100 000 rows...
I need to color the cells on columns AE to AL of the following pivot table if the values are smaller than the reference values given by column AN. In other words for the values in row 3 the reference value on column AN is 2, and for row 4 is 3 and so on...for each row there is a different reference value in column AN. Can I do this with conditional formatting?
Thank you.

exemplo.jpg
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Use
Excel Formula:
=AND(NOT(ISBLANK(AF3)),AF3<$AN3)
as your conditional formatting formula.

Book1
ADAEAFAGAHAIAJAKALAMAN
2
3A-dos-arcos1232
4Alenquer3143
5Averca113
6
7
Sheet1
Cell Formulas
RangeFormula
AL3:AL5AL3=SUM(AF3:AK3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AF3:AL5Expression=AND(NOT(ISBLANK(AF3)),AF3<$AN3)textNO
 
Upvote 1
Solution
Use
Excel Formula:
=AND(NOT(ISBLANK(AF3)),AF3<$AN3)
as your conditional formatting formula.

Book1
ADAEAFAGAHAIAJAKALAMAN
2
3A-dos-arcos1232
4Alenquer3143
5Averca113
6
7
Sheet1
Cell Formulas
RangeFormula
AL3:AL5AL3=SUM(AF3:AK3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AF3:AL5Expression=AND(NOT(ISBLANK(AF3)),AF3<$AN3)textNO
Thank you...
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top