help with code for conditional summary sheet

E

englishdad

Hi Guys

Initially I'm not sure how to even search for something like this but
am in need of help with a little coding again.

I'm getting a maintenance workbook together that has many worksheets i
it, each worksheet representing a vehicle.

In each worksheet B3 will be the vehicle reg and C3 the type. Ther
will then be a table starting at B7 and ending at E7 with date entered
fault descrip, fault remedy and date complete in them. Each fault bein
entered in the row below (ie B8-E8, etc).

A 5th column (F7, F8, etc) will calculate the number of days the faul
has existed without remedy and I'll conditional format them to go re
if any get to 7 days.

That about covers it for each sheet but what I'd like is a way of doin
a summary (a macro??) that goes through each sheet (eg 30 rows) an
checks the calculation in column F to see if any are 7 days or older.

If they are I'd like it to list B3 and C3 then the relevent row tha
has the entry that is red (ie B7 to E7, B8 to E8, or whatever ro
number it is)

I know this is a coding thing and I'm completely stuck on how to d
this so any help would be very gratefully received.

Thanks in advance :
 
B

Bernie Deitrick

EnglishDad,

You would be much better off if you started your design differently. Instead of one sheet for each
vehicle, add a column to on of your sheets, where you enter the vehicle name or ID in that column.
Then continue on as you stated. Each time you enter data, just enter the vehicle ID in that column.

Now you have a database. Apply data filters (Select a single cell in your table and use Data /
Filter / Autofilter), and you can use the dropdown at the top to filter the database to show
individual vehicles, those which are overdue, etc.

HTH,
Bernie
MS Excel MVP
 
E

englishdad

Herbert said:
Bernie is right.
But if you insist...
Excel 2007 with PivotTable and Macro.
http://www.mediafire.com/file/nwnqnj2ztkd/01_26_09.xlsm

Thanks for your help guys, I can't actually use the above link as I'
using office 2003 :(

The design of the workbook was passed on to me but it does allow us t
print out each individual sheet as a maintenance record in its curren
state so method behind madness type thing! I will investigate you
suggestion of using the filters but I might end up back with the ol
design due to the printing format. I'd also like the summary sheet t
be generated when the workbook opens so that you are presented with th
important info straight away. I'm not sure you could do this with th
filters option??? I could be wrong though, I am a novice at this!!

Anyway thanks again for your input and if you do come across some cod
for my version, do let me know :
 
B

Bernie Deitrick

Herbert,

If all your sheets have the same columns, with the same layout (headers, etc.) it would be easy to
use a simple macro to get all the sheets into one database. The big advantage of using a database
instead of individual sheets is actually reporting, which is more robust with a single sheet. For
example, you could use a pivot table on your database to get a summary, by whatever category you
want (depending on what you have in your database, of course) like, say, oil changes, brake jobs,
tire rotation, windshield washing, etc. And summaries accross vehicles / time frames would be much
easier. Then, you can still print out individual sheets by filtering the database to only show one
vehicle. So it is a lot more flexible, a lot easier to do reports....

Take a look at:

http://peltiertech.com/Excel/Pivots/pivotstart.htm

and go down the links, to get an idea of what you can do.

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top