Conditional Formatting with reference to other cells and with multiple rules (in the table)

Monikiy

New Member
Joined
Sep 18, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Good time of the day to you all!

I have a problem with conditional formatting and really hope that someone could help :)

In the below table the formatting needs to be applied to the columns D, E, F
and it should be based on the values in columns A & C with the following condition:
  • if cell D4 >= cell A4, cell D4 needs to turn green
  • if cell D4 <= cell C4, cell D4 needs to turn red
  • if cell D4 =AND(D4<A4, D4>C4), cell D4 needs to turn yellow
These 3 rules should be applied to all cells in columns D, E, F. However when I select for example column D4:D17 and set the above rules in the conditional formatting section, the colors are applied in the end, but only green and red, and it is also showing wrong colors.

I feel like I am missing something, an additional condition maybe or the order of the rules... I have tried to tweak the formulas, use $$ on the cells from columns A & C, but nothing seems to work.

Below I pasted a photo of the table and under it also an actual table, just for the reference.


I would really appreciate any help, and please tell me if I didn't explain myself well and I will try again.

1600432920656.png

Target & Limits (per month)
Target & Limits (per month)
Target & Limits (per month)
Results
Results
Results
>=100%
80-99%
<=79%
month 1
month 2
month 3
350298277410498517
786762798180
233198184210193188
670056955293581358795608
443835172123
142120112121128112
300100255085237079311202310040308594
885075236992859885918618
45%38%36%40%38%41%
60%51%47%60%66%65%
12503310627898776369476370906370519
303325782396866887268593
8670073695684939383010143775552
186715871475160930721528

Many thanks in advance!
 

Attachments

  • 1600432882769.png
    1600432882769.png
    38.2 KB · Views: 1

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
48,448
Office Version
  1. 365
Platform
  1. Windows
How about
+Fluff New.xlsm
ABCDEF
1Target & Limits (per month)ResultsResultsResults
2>=100%80-99%<=79%month 1month 2month 3
3
4350298277410498517
5786762798180
6233198184210193188
7670056955293581358795608
8443835172123
9142120112121128112
10300100255085237079311202310040308594
11885075236992859885918618
1245%38%36%40%38%41%
1360%51%47%60%66%65%
1412503310627898776369476370906370519
15303325782396866887268593
168670073695684939383010143775552
17186715871475160930721528
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D4:F17Expression=AND(D4<$A4,D4>$C4)textNO
D4:F17Expression=D4<=$C4textNO
D4:F17Expression=D4>=$A4textNO
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
48,448
Office Version
  1. 365
Platform
  1. Windows
Cross posted Conditional Formatting with reference to other cells and with multiple rules(in the table)

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered elsewhere.
 

Monikiy

New Member
Joined
Sep 18, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
How about
+Fluff New.xlsm
ABCDEF
1Target & Limits (per month)ResultsResultsResults
2>=100%80-99%<=79%month 1month 2month 3
3
4350298277410498517
5786762798180
6233198184210193188
7670056955293581358795608
8443835172123
9142120112121128112
10300100255085237079311202310040308594
11885075236992859885918618
1245%38%36%40%38%41%
1360%51%47%60%66%65%
1412503310627898776369476370906370519
15303325782396866887268593
168670073695684939383010143775552
17186715871475160930721528
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D4:F17Expression=AND(D4<$A4,D4>$C4)textNO
D4:F17Expression=D4<=$C4textNO
D4:F17Expression=D4>=$A4textNO
Thank you very much! Everything magically works now with your formulas :)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
48,448
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,114,528
Messages
5,548,574
Members
410,852
Latest member
WernerS
Top