Simple for you, difficult for me

GW1

New Member
Joined
Nov 23, 2010
Messages
21
Hi Guys

I have a dataset with car usage on it (driver service). I created a distinct flag and aggregated accordingly, bringing my set down from 50,000 to 10,000. I have the following fields: Date, pick up time, drop off time and location (and some others). I have also created various diffferent flags.

I need to understand how many cars were being used at any given point in time (which is straight forward to do, via pivot table?) and also (more importantly), say there are 10 booked requests in a day (given that a car can be busy for 1 hour and 30 minutes at a time, how many cars are need to fulfil the 10 different journeys. I know that if all the cars were booked for the same time, that would be 10 cars, but how do I work it out for when the requests are spread over the day?

I tried created a matrix to illustrate this, but just can get it to work. The idea being this is that i tried to 'plot' the start and the end times (when a car is in use). My formula skills just aren't up to scratch.

Can anyone suggest an approach/formula I can use please?

Thanks very much
 
Hi shg4421

Thanks for the quick reply.

Oh, the dates are incorrect. Must have happened when I coped them over. Sorry. They are not like t hat on the master sheet I was working off originally.

Can you please disregard the rows that have this issue and input them into the sheet?

There are two sheets as they have different duration times. Also, the sheets are specific to a particular set of cars. If you feel they can be merged and then identified by another columm (flag) then I am happy for that approach.

Thanks
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I originally just had a time stamp, but in order to replicate the layout of your sheet, I think I added in the start date to both the start and finish times, thus if the clock went past 00:00, the date stayed the same. Sorry.

I can add those times back in later.
 
Last edited:
Upvote 0
Also, you have end times that are before the start times, e.g.,
Code:
       -------C-------- -------D--------
  11   10/01/2009 22:30 10/01/2009 00:00

That won't work.


...thinking about it, it may explain why the process was artifically stopping at 0...

In anycase, I hope it is easy enough for you to get into the input sheet...
 
Upvote 0
It's interesting that over the entire data set, there is nothing higher than 4 (Sim). That's a lot lower than I would expect from a car service.
 
Upvote 0

Hi shg4421

Thanks for the sheet, I managed to also calculate the max number of cars required for any given day, regardless of the number of journeys that have been booked. I was a ray of light at 3am! I also resolved the 00:00 time/date issue.

I am trying to use the same sheet to input the next set of data (which I uploaded to you yesterday), which for some reason won't work....is there a 'range' issue given the sheet was setup for a larger data set?

When I paste the new data in and delete the old from the bottom of the list (as there are far fewer records this time), I get an error in the #Sim: "Invalid" and "Circular Reference". Can you advise please.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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