Highlighting dates

Zycho

New Member
Joined
Jul 8, 2018
Messages
10
Hi! Question.. I have got store list on B3:B7, dates when the vehicle changes for the store on D3:D7, vehicle registrations drop down list on F3:F7 and when the next change is due required on H3:H7.. now what I want to do is if the same vehicle is used for the same store 4 days in a row to be highlighted red in the next change due row and no change at all if no vehichle is selected. I can't work it out how to do that as I'm pretty new at doing all that on excel. Thanks in advance!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
It will help us build a solution if you can send or post some sample data Zycho. Use google docs or Dropbox etc if you want to send your sample sheet.
 
Upvote 0
So just to confirm you will have the vehicle registrations as drop-down in the Change Due column as well, and thats when the color comes in?
 
Upvote 0
So just to confirm you will have the vehicle registrations as drop-down in the Change Due column as well, and thats when the color comes in?
All I want is the due date to change red when the same vehicle is used 4 days in a row.
 
Upvote 0
The following works for me assuming that the dates are from the current date to 4 days ago,

Next to the Change Due column copy and drag down 50 rows or more;

Code:
=IF(COUNTIFS($D$3:$D$12,">="&(TODAY()-3),$D$3:$D$12,"<="&(TODAY()),$B$3:$B$12,LOOKUP(2,1/(B:B<>""),B:B),$H$3:$H$12,H3)=4,COUNTIFS($D$3:$D$12,">="&(TODAY()-3),$D$3:$D$12,"<="&(TODAY()),$B$3:$B$12,LOOKUP(2,1/(B:B<>""),B:B),$H$3:$H$12,H3),"")


Highlight the Change Due Column H:H, then Conditional Format, formula rule;

Code:
=$I1=4

This highlights all the vehicles including the one that has been selected.
 
Upvote 0

Forum statistics

Threads
1,224,752
Messages
6,180,743
Members
452,996
Latest member
nelsonsix66

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