Vehicle Maintenance on certain interval

Advice

New Member
Joined
Feb 11, 2022
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Hello,

I am trying to figure out how to calculate on which month a vehicle maintenance is needed base off the miles per month, service interval, and odometer. For example, Bike 1 odometer is 0, drives 80 miles per month, and maintenance is needed every 300 miles. The first maintenance for Bike 1 will occur in April (80*4=320), the second maintenance will occur in August (80*8=640), and so on. Bike 2 odometer is 300, drives 120 miles per month, and maintenance is needed every 500 miles. The first maintenance for Bike 2 will occur in February since odometer is at 300 and two month of driving is 240 so (300+240=540). The second will occur after odometer will reach 1000 (July). Below in green is the month that maintenance is needed.

"Yes" for the green
"No" for the remaining

1644620521710.png



I tried multiple IFs but got stuck..

Thanks for any help.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Map1
ABCDEFGHIJKLMNOP
1servicemilesodometer123456789101112
2bike130080080160240320400480560640720800880960
3bike25001203004205406607809001020114012601380150016201740
4bike31000200900110013001500170019002100230025002700290031003300
Blad2
Cell Formulas
RangeFormula
E1:P1E1=SEQUENCE(,12)
E2:P4E2=+E$1*$C2+$D2
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:P4Expression=AFRONDEN.BENEDEN.WISK(E2;$B2)<>AFRONDEN.BENEDEN.WISK(F2;$B2)textNO

formula for conditional format in english
Excel Formula:
=FLOOR.MATH(E2,$B2)<>FLOOR.MATH(F2,$B2)
 
Upvote 0
Another option
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQ
1
2servicemilesodometerJan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22
3bike130080080160240320400480560640720800880960
4bike25001203001202403604806007208409601080120013201440
5bike3100020090020040060080010001200140016001800200022002400
Main
Cell Formulas
RangeFormula
F2:Q2F2=DATE(2022,SEQUENCE(,12),1)
F3:Q5F3=SEQUENCE(,12,C3,C3)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:Q5Expression=INT((F3+$D3)/$B3)>INT((E3+$D3)/$B3)textNO
 
Last edited:
Upvote 0
Or if you want Yes & No in the cells
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQ
1
2servicemilesodometerJan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22
6bike1300800NoNoNoYesNoNoNoYesNoNoNoYes
7bike2500120300NoYesNoNoNoYesNoNoNoYesNoNo
8bike31000200900YesNoNoNoNoYesNoNoNoNoYesNo
Main
Cell Formulas
RangeFormula
F2:Q2F2=DATE(2022,SEQUENCE(,12),1)
F6:Q8F6=IF(INT(SEQUENCE(,12,C6+D6,C6)/B6)-INT(SEQUENCE(,12,D6,C6)/B6),"Yes","No")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F6:Q8Expression=F6="Yes"textNO
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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