Conditional Formatting to Highlight Items

Campbellmnc

New Member
Joined
Feb 17, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am trying to figure out a conditional format that after seven days of no change would highlight. I would need to highlight any consecutive 7 blank cells.
Sample data
1/1​
1/2​
1/3​
1/4​
1/5​
1/6​
1/7​
1/8​
1/9​
1/10​
1/11​
1/12​
1/13​
1/14​
1/15​
1/16​
1/17​
1/18​
1/19​
1/20​
1/21​
1/22​
1/23​
1/24​
1/25​
1/26​
1/26​
1/27​
1/28​
1/29​
1/30​
1/31​
Veggie ItemMexicoMexicoMexicoMexicoMexicoMexico
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
01/0101/0201/0301/0401/0501/0601/0701/0801/0901/1001/1101/1201/1301/1401/1501/1601/1701/1801/1901/2001/2101/2201/2301/2401/2501/2601/2701/2801/2901/3001/31
Veggie ItemMexicoMexicoMexicoMexicoMexicoMexico


The conditional format formula is =COUNTBLANK(B2:H2)=7 and the conditional formatting starts in cell H2 and extends to the right as far as necessary. It is not worth trying to format the preceding cells as they cannot have sufficient blank cells amongst them to trigger the formatting. Only cell AA meets the criteria.

HTH
 
Upvote 0
Cell Formulas
RangeFormula
C2:AF2C2=B2+1
B5B5=OR(AND(OFFSET(B3,0,0,1,7)=0))
C5C5=OR(AND(OFFSET(C3,0,-2,1,7)=0),AND(OFFSET(C3,0,-1,1,7)=0),AND(OFFSET(C3,0,0,1,7)=0))
D5D5=OR(AND(OFFSET(D3,0,-3,1,7)=0),AND(OFFSET(D3,0,-2,1,7)=0),AND(OFFSET(D3,0,-1,1,7)=0),AND(OFFSET(D3,0,0,1,7)=0))
E5E5=OR(AND(OFFSET(E3,0,-4,1,7)=0),AND(OFFSET(E3,0,-3,1,7)=0),AND(OFFSET(E3,0,-2,1,7)=0),AND(OFFSET(E3,0,-1,1,7)=0),AND(OFFSET(E3,0,0,1,7)=0))
F5F5=OR(AND(OFFSET(F3,0,-5,1,7)=0),AND(OFFSET(F3,0,-4,1,7)=0),AND(OFFSET(F3,0,-3,1,7)=0),AND(OFFSET(F3,0,-2,1,7)=0),AND(OFFSET(F3,0,-1,1,7)=0),AND(OFFSET(F3,0,0,1,7)=0))
G5:AF5G5=OR(AND(OFFSET(G3,0,-6,1,7)=0),AND(OFFSET(G3,0,-5,1,7)=0),AND(OFFSET(G3,0,-4,1,7)=0),AND(OFFSET(G3,0,-3,1,7)=0),AND(OFFSET(G3,0,-2,1,7)=0),AND(OFFSET(G3,0,-1,1,7)=0),AND(OFFSET(G3,0,0,1,7)=0))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3Expression=OR(AND(OFFSET(B3,0,0,1,7)=0))textNO
C3Expression=OR(AND(OFFSET(C3,0,-2,1,7)=0),AND(OFFSET(C3,0,-1,1,7)=0),AND(OFFSET(C3,0,0,1,7)=0))textNO
D3Expression=OR(AND(OFFSET(D3,0,-3,1,7)=0),AND(OFFSET(D3,0,-2,1,7)=0),AND(OFFSET(D3,0,-1,1,7)=0),AND(OFFSET(D3,0,0,1,7)=0))textNO
E3Expression=OR(AND(OFFSET(E3,0,-4,1,7)=0),AND(OFFSET(E3,0,-3,1,7)=0),AND(OFFSET(E3,0,-2,1,7)=0),AND(OFFSET(E3,0,-1,1,7)=0),AND(OFFSET(E3,0,0,1,7)=0))textNO
F3Expression=OR(AND(OFFSET(F3,0,-5,1,7)=0),AND(OFFSET(F3,0,-4,1,7)=0),AND(OFFSET(F3,0,-3,1,7)=0),AND(OFFSET(F3,0,-2,1,7)=0),AND(OFFSET(F3,0,-1,1,7)=0),AND(OFFSET(F3,0,0,1,7)=0))textNO
G3:AF3Expression=OR(AND(OFFSET(G3,0,-6,1,7)=0),AND(OFFSET(G3,0,-5,1,7)=0),AND(OFFSET(G3,0,-4,1,7)=0),AND(OFFSET(G3,0,-3,1,7)=0),AND(OFFSET(G3,0,-2,1,7)=0),AND(OFFSET(G3,0,-1,1,7)=0),AND(OFFSET(G3,0,0,1,7)=0))textNO
 
Upvote 0
How you would set this up if there were about 20 rows with different items?
 
Upvote 0
Assuming it is working on the single row, simply go to the Conditional Formatting Rules Manager and extend the 'applies to' range. (it should be as easy as that).
 
Upvote 0
delighted to have helped - if it has solved the problem please mark it as an answer as that will help others in the future.

All the best.
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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