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: 8

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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
 
Upvote 0
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.
 
Upvote 0
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 :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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