3 Conditional Formatting in one cell

MTownsend

New Member
Joined
Feb 2, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I am having trouble adding conditional formatting to one cell. I have developed an attendance Grid. This is how we want it to function:


When column C "Accumulated points" reaches 20, highlight column C Yellow.
Column H and J or manual fields.
When column C reaches column H's number + 4 Column C Turns Orange
When column C reaches Column J's number + 4 Column C Turns Red

I have tried several different way to make this happen and in testing, it does not work properly.

Anyone have any ideas?

Copy of 02022024 Test Workbook Updatesv3.xlsx
ABCGHIJKLMNOPQRSTUVWXYZAAABACAD
17Employee ID NumberEmployee NameAccumulated PointsDate First Written PresentedTotal Points on First Written Date Second Written PresentedTotal Points on Second Written 1/11/21/31/41/51/81/91/101/111/121/151/161/171/181/191/221/231/241/251/26
18123456Doe, Jane0
190
200
Log
Cell Formulas
RangeFormula
C18:C20C18=SUM(K18:NM18)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C18:C513Cell Value=0textNO
C18:C513Expression=D18=5textNO
C18:C513Expression=D18=2textNO
C18:C513Expression=C18>19.99textNO
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Perhaps these:
Book1
ABCDEFGHIJ
17Employee ID NumberEmployee NameAccumulated PointsDate First Written PresentedTotal Points on First Written Date Second Written PresentedTotal Points on Second Written
18123456Doe, Jane20
191410
201915
Sheet7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C18:C20Expression=$C18=($J18+4)textNO
C18:C20Expression=$C18=($H18+4)textNO
C18:C20Expression=$C18=20textNO


Not sure why you have the rules looking at column D when you said column C... that may be why they're not working for you?
 
Upvote 0
I used the formula's you provided: if you enter 4 into any of the date columns, Column C turns red. The way we would like it to function is once accumulated points hit 20, it turns yellow and should remain yellow until accumulated points = E+4 then it should turn orange and remain orange until accumulated points = G+4.


Attendance Tracker 2024.xlsx
ABCDEFGHIJKL
12Employee ID NumberEmployee NameAccumulated PointsDate First Written PresentedTotal Points on First Written Date Second Written PresentedTotal Points on Second Written 03/29/202403/30/202403/31/202404/01/202404/02/2024
13123456Doe, Jane0
Log
Cell Formulas
RangeFormula
C13C13=SUM(H13:NK13)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C13Expression=$C13=$G13+4textNO
C13Expression=$C13=$E13+4textNO
C13Expression=$C13=20textNO
 
Upvote 0
Okay, give these a try:
Book1
ABCDEFGHIJKL
12Employee ID NumberEmployee NameAccumulated PointsDate First Written PresentedTotal Points on First Written Date Second Written PresentedTotal Points on Second Written 4538045381453824538345384
13123456Doe, Jane242226104100
1426222610574
1529222612125
1630222613134
17192226154
Sheet1
Cell Formulas
RangeFormula
C13:C17C13=SUM(H13:NK13)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C13:C17Expression=AND($C13>20,$C13>=$G13+4)textNO
C13:C17Expression=AND($C13>20,$C13>=$E13+4,$C13<$G13+4)textNO
C13:C17Expression=AND($C13<$E13+4,$C13>=20)textNO
 
Upvote 0
If you remove the total points for first written and total points for second written, Accumulated points should remain yellow and it does not. If no points are in E or G, it should remain yellow until points are entered into E and then G.
 
Upvote 0
If you remove the total points for first written and total points for second written, Accumulated points should remain yellow and it does not. If no points are in E or G, it should remain yellow until points are entered into E and then G.
Okay, I think I got it this time:
Book1
ABCDEFGHIJKL
12Employee ID NumberEmployee NameAccumulated PointsDate First Written PresentedTotal Points on First Written Date Second Written PresentedTotal Points on Second Written 4538045381453824538345384
13123456Doe, Jane302226104106
1426222610574
15292612125
16302213134
17251510
Sheet1
Cell Formulas
RangeFormula
C13:C17C13=SUM(H13:NK13)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C13:C17Expression=AND($C13>20,$C13>=$G13+4,$G13>0)textNO
C13:C17Expression=AND($C13>=$E13+4,OR($C13<$G13+4,$G13="",$G13=0),$E13>0)textNO
C13:C17Expression=AND($C13>=20,OR($C13<$E13+4,$E13="",$E13=0,$G13="",$G13=0))textNO
 
Upvote 0
Solution

Forum statistics

Threads
1,215,102
Messages
6,123,099
Members
449,096
Latest member
provoking

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