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

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.
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

Thanks shg4421

I see where I went wrong. Did you take out the dates with 00:00 to make it work?

I can take this now an replicate for the next data set.

Is there a direct way to calculate the number of cars needed per day? I know 'Sim' refers to the number if overlaps. How can I convert it into 'e.g. 7 cars needed for 01/10/2009'?

Thanks again.
 
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
Post a link to what you've done.
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,269
Members
449,093
Latest member
Vincent Khandagale

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