conditional formatting showing wrong colours

tbilto

New Member
Joined
Dec 19, 2021
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
for the column titled "Progress", i have set conditional formatting rules to display each cell at different colors when having different percentages. However, some of the cells are not showing any colors at all,

(you can see the attached mini-sheet)


excel issue.xlsx
BCDEFGHIJKLMNOPQ
1Total ProgressTotal Expected ProgressColor Legend
232%28%ExceedingOn TrackAt RiskOff Track
3
4ProgressExpected Progress
5sample30%29%start datefinish datestart valuetarget valueunitcurrent value
6sample30%29%8/1/202111/30/20220100%30
7
8sample22%27%start datefinish datestart valuetarget valueunitcurrent value
9sample19%27%8/1/202112/31/20220210000JD40000
10sample20%27%8/1/202112/31/2022070000JD14000
11sample29%27%8/1/202112/31/2022070000JD20000
12sample20%27%8/1/202112/31/20220350000JD70000
13
14sample45%56%start datefinish datestart valuetarget valueunitcurrent value
15sample50%66%8/1/20212/28/20220100%50
16sample40%46%8/1/20215/31/20220100%40
sample
Cell Formulas
RangeFormula
E2E2=AVERAGE(I5,I8,I14)
F2F2=AVERAGE(J5,J8,J14,)
I5:J5I5=AVERAGE(I6:I6)
I6,I15:I16,I9:I12I6=(Q6-N6)/(O6-N6)
J6,J15:J16,J9:J12J6=IF(L6>TODAY(),0,(IF(M6<TODAY(),100%,((DAYS(TODAY(),L6)/(DAYS(M6,L6)))))))
I8:J8I8=AVERAGE(I9:I12)
I14:J14I14=AVERAGE(I15:I16)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B14Expression=AND(J14>0, I14=0, J14>0%, J14<=33%)textNO
B14Expression=AND(J14>0, I14=0, J14>33%, J14<=66%)textNO
B14Expression=AND(J14>0, I14=0, J14>66%, J14<=100%)textNO
B14Expression=AND(J14=0,I14>0)textNO
B14Expression=AND(J14=0,I14=0)textNO
B14Expression=AND((I14/J14)>100%)textNO
B14Expression=AND((I14/J14)>66%,(I14/J14)<=100%)textNO
B14Expression=AND((I14/J14)>33%,(I14/J14)<=66%)textNO
B14Expression=AND((I14/J14)>0,(I14/J14)<=33%)textNO
I12Expression=AND(L12<TODAY(), I12=0, J12>=0, J12<=33%)textNO
I12Expression=AND(L12<TODAY(), I12=0, J12>33%, J12<=66%)textNO
I12Expression=AND(L12<TODAY(), I12=0, J12>66%, J12<=100%)textNO
I12Expression=AND(L12>TODAY(),I12>0)textNO
I12Expression=AND(L12>TODAY(),I12=0)textNO
I12Expression=AND(L15<TODAY(),(I12/J12)>100%)textNO
I12Expression=AND(L15<TODAY(),(I12/J12)>66%,(I12/J12)<=100%)textNO
I12Expression=AND(L15<TODAY(),(I12/J12)>33%,(I12/J12)<=66%)textNO
I12Expression=AND(L15<TODAY(),(I12/J12)>0,(I12/J12)<=33%)textNO
I11Expression=AND(L11<TODAY(), I11=0, J11>=0, J11<=33%)textNO
I11Expression=AND(L11<TODAY(), I11=0, J11>33%, J11<=66%)textNO
I11Expression=AND(L11<TODAY(), I11=0, J11>66%, J11<=100%)textNO
I11Expression=AND(L11>TODAY(),I11>0)textNO
I11Expression=AND(L11>TODAY(),I11=0)textNO
I11Expression=AND(L14<TODAY(),(I11/J11)>100%)textNO
I11Expression=AND(L14<TODAY(),(I11/J11)>66%,(I11/J11)<=100%)textNO
I11Expression=AND(L14<TODAY(),(I11/J11)>33%,(I11/J11)<=66%)textNO
I11Expression=AND(L14<TODAY(),(I11/J11)>0,(I11/J11)<=33%)textNO
I10Expression=AND(L10<TODAY(), I10=0, J10>=0, J10<=33%)textNO
I10Expression=AND(L10<TODAY(), I10=0, J10>33%, J10<=66%)textNO
I10Expression=AND(L10<TODAY(), I10=0, J10>66%, J10<=100%)textNO
I10Expression=AND(L10>TODAY(),I10>0)textNO
I10Expression=AND(L10>TODAY(),I10=0)textNO
I10Expression=AND(L13<TODAY(),(I10/J10)>100%)textNO
I10Expression=AND(L13<TODAY(),(I10/J10)>66%,(I10/J10)<=100%)textNO
I10Expression=AND(L13<TODAY(),(I10/J10)>33%,(I10/J10)<=66%)textNO
I10Expression=AND(L13<TODAY(),(I10/J10)>0,(I10/J10)<=33%)textNO
I9Expression=AND(L9<TODAY(), I9=0, J9>=0, J9<=33%)textNO
I9Expression=AND(L9<TODAY(), I9=0, J9>33%, J9<=66%)textNO
I9Expression=AND(L9<TODAY(), I9=0, J9>66%, J9<=100%)textNO
I9Expression=AND(L9>TODAY(),I9>0)textNO
I9Expression=AND(L9>TODAY(),I9=0)textNO
I9Expression=AND(L12<TODAY(),(I9/J9)>100%)textNO
I9Expression=AND(L12<TODAY(),(I9/J9)>66%,(I9/J9)<=100%)textNO
I9Expression=AND(L12<TODAY(),(I9/J9)>33%,(I9/J9)<=66%)textNO
I9Expression=AND(L12<TODAY(),(I9/J9)>0,(I9/J9)<=33%)textNO
I6Expression=AND(L6<TODAY(), I6=0, J6>=0, J6<=33%)textNO
I6Expression=AND(L6<TODAY(), I6=0, J6>33%, J6<=66%)textNO
I6Expression=AND(L6<TODAY(), I6=0, J6>66%, J6<=100%)textNO
I6Expression=AND(L6>TODAY(),I6>0)textNO
I6Expression=AND(L6>TODAY(),I6=0)textNO
I6Expression=AND(L9<TODAY(),(I6/J6)>100%)textNO
I6Expression=AND(L9<TODAY(),(I6/J6)>66%,(I6/J6)<=100%)textNO
I6Expression=AND(L9<TODAY(),(I6/J6)>33%,(I6/J6)<=66%)textNO
I6Expression=AND(L9<TODAY(),(I6/J6)>0,(I6/J6)<=33%)textNO
E2Expression=AND(F2>0, E2=0, F2>0%, F2<=33%)textNO
E2Expression=AND(F2>0, E2=0, F2>33%, F2<=66%)textNO
E2Expression=AND(F2>0, E2=0, F2>66%, F2<=100%)textNO
E2Expression=AND(F2=0,E2>0)textNO
E2Expression=AND(F2=0,E2=0)textNO
E2Expression=AND((E2/F2)>100%)textNO
E2Expression=AND((E2/F2)>66%,(E2/F2)<=100%)textNO
E2Expression=AND((E2/F2)>33%,(E2/F2)<=66%)textNO
E2Expression=AND((E2/F2)>=0,(E2/F2)<=33%)textNO
B8Expression=AND(J8>0, I8=0, J8>0%, J8<=33%)textNO
B8Expression=AND(J8>0, I8=0, J8>33%, J8<=66%)textNO
B8Expression=AND(J8>0, I8=0, J8>66%, J8<=100%)textNO
B8Expression=AND(J8=0,I8>0)textNO
B8Expression=AND(J8=0,I8=0)textNO
B8Expression=AND((I8/J8)>100%)textNO
B8Expression=AND((I8/J8)>66%,(I8/J8)<=100%)textNO
B8Expression=AND((I8/J8)>33%,(I8/J8)<=66%)textNO
B8Expression=AND((I8/J8)>0,(I8/J8)<=33%)textNO
B5Expression=AND(J5>0, I5=0, J5>0%, J5<=33%)textNO
B5Expression=AND(J5>0, I5=0, J5>33%, J5<=66%)textNO
B5Expression=AND(J5>0, I5=0, J5>66%, J5<=100%)textNO
B5Expression=AND(J5=0,I5>0)textNO
B5Expression=AND(J5=0,I5=0)textNO
B5Expression=AND((I5/J5)>100%)textNO
B5Expression=AND((I5/J5)>66%,(I5/J5)<=100%)textNO
B5Expression=AND((I5/J5)>33%,(I5/J5)<=66%)textNO
B5Expression=AND((I5/J5)>0,(I5/J5)<=33%)textNO
I15:I16Expression=AND(L15<TODAY(), I15=0, J15>=0, J15<=33%)textNO
I15:I16Expression=AND(L15<TODAY(), I15=0, J15>33%, J15<=66%)textNO
I15:I16Expression=AND(L15<TODAY(), I15=0, J15>66%, J15<=100%)textNO
I15:I16Expression=AND(L15>TODAY(),I15>0)textNO
I15:I16Expression=AND(L15>TODAY(),I15=0)textNO
I15:I16Expression=AND(#REF!<TODAY(),(I15/J15)>100%)textNO
I15:I16Expression=AND(#REF!<TODAY(),(I15/J15)>66%,(I15/J15)<=100%)textNO
I15:I16Expression=AND(#REF!<TODAY(),(I15/J15)>33%,(I15/J15)<=66%)textNO
I15:I16Expression=AND(#REF!<TODAY(),(I15/J15)>0,(I15/J15)<=33%)textNO
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
the cells that are not showing any colors are I11, I15 and I16
 
Upvote 0
Hi Tblito,

I am unsure why you are setting Conditional Format individually for each cell. You have an "Applies to" where you can set the range of cells (e.g. $B$5:$H$999). As you have merged some cells then the Applies to range will always be from B to H as you cannot format a part of a merged cell.

Your I11 formulae contain some references to row 14. I'd suggest that is where the problem arises.

Some of your I15:I16 formulae have invalid references, e.g. AND(#REF!<TODAY(),(I15/J15)>100%)

Suggestions:
  1. Avoid merged cells if possible.
  2. You need a formula per colour. I see some colours have 2 different formulae so you could merge them into one using an OR
  3. Start by getting each colour formulae working for $B$5:$H$5 but then amend the Applies to range to $B$5:$H$999
  4. Start by getting the $I$5:$J$5 formulae working and then change the Applies to to $I$5:$J$999
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,426
Members
448,961
Latest member
nzskater

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