Continuously Updating Sheet for Changing Oil

JoshuaT

New Member
Joined
Apr 4, 2011
Messages
4
Hey,

I've been following your videos for a few months now and using them pretty extensively. Now I've got an issue in Excel and I'm not sure what to search for, or if you even have a video for the problem. So I thought I would message you about it.

Basically I've got to do car maintenance to my car and I want to program an excel sheet so that every 3000 miles it tells me that I first need to get my oil changed soon, then I need to do it now.

That part I can actually do with an IF function, the problem comes in two parts, really. How do I tell Excel to do it every 3000 miles without writing out 3000, 6000, 9000, etc? And is there a way that I can put an X in a cell next to where I got my oil changed, and then Excel references back to that point, then starts again?

For example, if I said remind me at 3000 miles, then I went a little over to 3129 and put an X next to it, is there some way for Excel to understand that the next oil change shouldn't happen until 6129? Not only that, but for it to understand that just because the value is greater than 3000 that it doesn't need to say "Change your oil now" if I already have changed my oil.

There are other things I would like to add too, like rotating my tires every so many miles, when I should get new tires. And if possible to change my oil either three months out, or 3000 miles, which ever happens first.

I don't know if it's easier to reference other sheets in the same book, or to write it all on one, or what. But if you have an idea of how to help, or a set of videos I should go check out, it would be a big help!

My current IF function looks like this:

=IF(AND(B2>=2500, B2<2900),"Change Oil Soon", IF(B2>2900, "Change Oil Now",""))

I was hoping to write it and get an epiphany of how to write it so that when I do change my oil, I can note it in D2 with an X, and then that'll be the new starting point for Excel to reference. Basically what happens now is that I have Date, Odometer, Warning, and Done columns.

The other issue, like I said, would be to get the "Warning" column to potentially light up with various other warnings of when I need to do other maintenance on my car. Like "Change Oil Soon" or "Rotate Tires Soon" and so on and so forth.

I don't even know what to search for with this kind of a problem. I know it's probably a pretty advanced technique, though. Also, this is for use with an iPod Touch (DocumentsToGo) or an Android phone (not sure what the other program is called), and so the macro stuff and conditional formatting doesn't work.

However if that's the only way for it to work, then that's fine. I can at least get the numbers on my phone, and update the sheet that way, and then when I put it on the computer, it'll tell me on there what needs doing.

Thanks,
Josh
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,
I have done fleet management work in the past and although I'm not a great programmer my suggestion is that you add some extra columns.

I would at least have a col showing date of last activity as well as Odo reading at that point. Perhaps an additional column or two showing predicted next activity bu odo and/or date.

Doing that allows simple formulae to be used rather than macros.

Regards,

Alan
 
Upvote 0
Hey,

Thanks for the tip. Though my boss handed me the "keys" to take care of a similar excel sheet for the company truck. And it has like 32 different items to check up on in different intervals. I made a sheet, like you suggested, with 32 rows and a ton of columns (turns out it's measured by 6500 miles) and made the columns.

I'm still not sure how to get it to work though. I've made other excel sheets for the company before, one for estimates, another for doing schedules. This one just has me stumped. On the bright side, I'm actually getting paid to do the truck one though. And I figure once I figure this out, the one for my car will be a snap!

Josh
 
Upvote 0
Hi,

I've roughed up a small example of the type of thing that works without VBA.

With the use of a little VBA we could clean it up greatly and get it to colour blocks according to situation. eg green if service more than "x" kms/days away, Orange if close, Red if overdue.

Hope this helps a bit.

Regards,

Alan


Sheet1
Input current date in A2 and current odo reading in B2. Sorry about the #Value in col C. I dont know how to do a multi condition if directly on the spreadsheet.

Excel Workbook
ABCDEFGHIJK
1Current DateCurrent OdoKms OverdueDays OverdueService ItemInterval KmsInterval DaysLast Service OdoLast Service DateNext Service Due OdoNext Service Due Date
231-Mar-11111,787-4558 Kms to next service#VALUE!Oil5,000111,34501-Jan-11116,345 
3Overdue by 74998 Kms#VALUE!Tyres40,00036,78901-Jan-1176,789 
4Overdue by 100442 Kms#VALUE!Filters10,00011,34501-Jan-1121,345 
5Overdue by 111787 KmsOverdue -59 daysBattery3001-Jan-11031/Jan/2011
6-8213 Kms to next service#VALUE!Timing Belt120,000001-Jan-11120,000 
Sheet
 
Upvote 0
Hmmm, that does help a lot. I'm trying to figure out exactly how it helps. At least I have an idea of how I want to format it though.

Also, is there a way to tell Excel to look for whatever one comes first? Like if you need an Oil change every three months or 3000 miles? I don't think that will be an issue for the company I work for, but you never know.
 
Upvote 0
Please check regarding the use of VBA. If you can use VBA the whole thing becomes easy. I could help you set up exactly what you need and it does n ot have to be a lot of code. Without VBA I don't think we can do much more than what I've sent you.

Please note that what we've done thus far is 2 dimensional (Service types down and service details accross) This really needs a third dimension - The vehicles themselves. Without VBA this can probably only be achieved by a page(tab) per vehicle.

REgards,

Alan
 
Upvote 0
I'm fine with using multiple tabs in each workbook to really keep things simple on what the user is filling out.

What does VBA stand for? Is that Validation...not sure what the other could stand for.

Anyway, thanks for all of the help, I really appreciated it. Also can the VBA be used in 2003 excel and earlier? Unfortunately with my boss he's holding off on upgrading to 2010, but I know that you can run in compatibility mode.

I think it'll all come back to the computer at the end of the day, so VBA may work just fine on the phones.

Let me know!

Josh
 
Upvote 0
VBA Visual Basic for Applications. Just a programming language that runs within Excel.
I write VBA applications using 2003 and in 98% of all things it is perfectly compatible with 2007 and 2010 .
I have no idea whatsoever regarding the phones.

Perhaps you should post a separate enquiry on the forum giving phone details asking if VBA will work.

Regards,

Alan
 
Upvote 0
Index a list of mileage and dates on a separte sheet and conditional format from there, I can post a formula I used to auto Index the mileage and I can post a formula I used to highlight my Oil Change cell Red when it was 7,500 miles past the last oil change
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,328
Members
452,907
Latest member
Roland Deschain

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