Automated scheduling

Beau the dog

Board Regular
Joined
Mar 8, 2021
Messages
72
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I'm trying to create an automated vehicle maintenance planner and saw this online, but couldn't see how they achieved it. This isn't my final solution, but might get me closer. How did they automatically plot the 'X' based on the interval and start date for each vehicle (with no VBA)? I've entered the X's manually.

13/12/2021​
20/12/2021​
27/12/2021​
03/01/2022​
10/01/2022​
17/01/2022​
24/01/2022​
31/01/2022​
07/02/2022​
14/02/2022​
21/02/2022​
28/02/2022​
07/03/2022​
14/03/2022​
21/03/2022​
28/03/2022​
04/04/2022​
11/04/2022​
18/04/2022​
25/04/2022​
02/05/2022​
09/05/2022​
IntervalStart
Vehicle 16 weekly13/12/2021XXXX
Vehicle 28 weekly13/12/2021XXX
Vehicle 38 weekly20/12/2021XXX
Vehicle 412 weekly27/12/2021XX
 
An odd problem for the filter. I just made two.
Cell Formulas
RangeFormula
E3:AE3E3=D3+7
D4:D7D4=IF(D$3>=$C4,IF(MOD((D$3-$C4)/7,$B4)<1,"A",""),"")
E4:AE7E4=IF(E$3>=$C4,IF(MOD((E$3-$C4)/7,$B4)<1,IF(MOD(SUMPRODUCT(--(LEN($D4:D4)>0)),3)=2,"B","A"),""),"")
A11:C12A11=(FILTER(A4:C7,INDEX(A4:AE7,,MATCH(D10,D3:AE3,0)+3)<>"",""))
D11:D12D11=(FILTER(INDEX(A4:AE7,,MATCH(D10,D3:AE3,0)+3),INDEX(A4:AE7,,MATCH(D10,D3:AE3,0)+3)<>"",""))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
D10List=$D$3:$AE$3
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hello again, trying to push this on a bit further now. I've named your formulas to make it easier (I think). The formula D4 I've named "first_col" and for formula E4 I've named "remain_col"

I've also added a column after Column C, with the MOT expiry date (but made it the week commencing date). We represent MOT on the planner as "C". So lets assume our first expiry WC date is in cell D4 now. I entered the formula

=IF($D4=E$3,"C",first_col) and this works, for the columns after I enter the same except I change the value if false to remain_col. Great, I get my A,A,B mapped out, with a C dropped in for MOT.

My question is, and I think its just a alteration of your above formulas, is how do I get the the pattern to start A,A,B after there is a C.

So it should look like this for example A, A, B, A, A, C, A, A, B, A, A, B or A, A, B, A, C, A, A, B, A, A, B,
 
Upvote 0
Hi,

Maybe this one got lost in amongst all the others, just wondering if anyone has a solution to my last question in this thread please?

As always, any help is appreciated.
 
Upvote 0
It's the excel add-in available from the site (Look in FAQ). It's what most people use to post a spreadsheet segment (like what I post above). It's an easy way to send a functioning bit of spreadsheet to see what is happening.
 
Upvote 0

Forum statistics

Threads
1,215,989
Messages
6,128,149
Members
449,427
Latest member
jahaynes

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