Oil Change Service

Papi

Well-known Member
Joined
May 22, 2007
Messages
1,592
I need to look at a running list and be able to find the last date and mileage when we serviced our vehicles compared to the last time the service was done (plus some others but will maybe be able to figure them out from these examples.

Once the last service is listed it should allow C2 to get the next expected service by the fixed mileage of i.e. 5000. I just entered the dates in C3 and C4 but need them to get the highest service date pertaining to Service in column B and return the mileage to match in D3. Also, to do the same with the previous servicing in C4 and place the mileage in D4.
Book2
ABCD
1DescriptionDetail
2AnticiateNextService72,590
3LastService6-Aug67,590
4PreviousService22-May62,567
5Servicevariance5,023
6
7DateCategoryMileage
86-AugService67,590
95-JulRepair62,500
104-JunInstall58,900
1122-MayService62,567
1217-FebRepair60,000
Sheet1
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try a Pivot Table or

C3 {=MAX(IF(B8:B12="Service",A8:A12))}
C4 {=MAX(IF(B8:B12="Service",IF(A8:A12 < C3 ,A8:A12)))}

D3 =SUMPRODUCT(--($A$8:$A$12=C3),--($B$8:$B$12="Service"),($C$8:$C$12))

N.B. The formulas in C3 and C4 are array formulas; enter them with Control + Shift + Enter not just Enter.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,278
Members
452,902
Latest member
Knuddeluff

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