Conditional format - don't change background color

Bandito1

Board Regular
Joined
Oct 18, 2018
Messages
239
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I use conditional formating to color the border of cells that contain a date that is within a week from today.

My table is fill colors; 1 line gray, 1 gray white, 1 line gray and so on.
This is done for readability.

The conditional formating fills all cells with white. I don't want this. I want it to stay either gray or white (the original color).
Some way to make this?

Conditional format formule: =WEEKNUM($D3)=WEEKNUM(NOW())
Format; red borders

Tracker QA on the floor New.xlsm
ABCD
3512330640B26-sep
3513329853A28-sep
Tracker QA on the Floor
Cell Formulas
RangeFormula
D3512:D3513D3512=IFERROR(INDEX('\\nltilnetapsnas1\PUBLIC\Supply Chain\Planning\Sales Order Report\[SOR.xlsx]SOR (BPOOP011)'!$AC:$AC,MATCH(A3512,'\\nltilnetapsnas1\PUBLIC\Supply Chain\Planning\Sales Order Report\[SOR.xlsx]SOR (BPOOP011)'!$C:$C,0)),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D3:D1048573Expression=WEEKNUM($D3)=WEEKNUM(NOW())textNO
A3:AG1048573Expression=AND($A3<>"";MOD(SUBTOTAL(3;$A$3:$A3);2)=0)textNO
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Change the format for that rules to "No colour" for the fill.
 
Upvote 0
You need to change the other rule.
 
Upvote 0
It doesn't make any difference, @Fluff. If you have a structured table with banded rows conditional formatting wipes the table format, even if you set it to no fill.

edit:- 4 rules needed.
Excel Formula:
=AND(ISODD(ROW($D3));WEEKNUM($D3)=WEEKNUM(NOW()))
Excel Formula:
=AND(ISEVEN(ROW($D3));WEEKNUM($D3)=WEEKNUM(NOW()))
Excel Formula:
=AND(ISODD(ROW($A3));$A3<>"";MOD(SUBTOTAL(3;$A$3:$A3);2)=0))
Excel Formula:
=AND(ISEVEN(ROW($A3));$A3<>"";MOD(SUBTOTAL(3;$A$3:$A3);2)=0))
With the correct fill colours for the table applied as necessary.
 
Last edited:
Upvote 0
Never knew that. Yet another reason to avoid using Tables.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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