Jampa

New Member
Joined
May 21, 2018
Messages
3
Hello Everyone,

Could some genius please help me with formula or ways to find a daily occupancy rate of car park in hourly bases based on transaction of “Date Time IN” and “Date Time OUT”. ?

Below are the actual sample of transaction we receive.

Note: Drivers can park for more than a day as well.

Session StartSession EndDuration (in Mins)VRNCar Park
01/04/2018 04:2201/04/2018 17:59817****UXZCar Park 1
01/04/2018 05:1801/04/2018 17:59761****OXZCar Park 1
01/04/2018 05:5301/04/2018 17:59726****PTZCar Park 1
01/04/2018 06:0301/04/2018 17:59716****MGZCar Park 1
01/04/2018 06:1501/04/2018 17:59704****LBZCar Park 1
01/04/2018 06:5301/04/2018 11:00247****SKZCar Park 1
01/04/2018 06:5701/04/2018 15:00483****FBZCar Park 1
01/04/2018 07:0301/04/2018 17:59656****KDZCar Park 1
01/04/2018 07:1001/04/2018 17:59649****EHZCar Park 1
01/04/2018 20:4002/05/2018 18:591339****ZHZCar Park 1
01/04/2018 20:4402/05/2018 18:591335****JMZCar Park 1
01/04/2018 21:1402/05/2018 16:591185****FFZCar Park 1

<tbody>
</tbody>

Below is the table that would be in a different sheet and I need the data in column D (No of car in the car park) using formula/function based on above transactions.
DateTime PeriodNo of car in car park Total spacespace availableOccupancy rate in %
01/04/201800:0000:5901001000%
01/04/201801:0001:591100991%
01/04/201802:0002:592100982%
01/04/201803:0003:593100973%
01/04/201804:0004:594100964%
01/04/201805:0005:595100955%
01/04/201806:0006:596100946%
01/04/201807:0007:597100937%
01/04/201808:0008:598100928%
01/04/201809:0009:599100919%
01/04/201810:0010:59101009010%
01/04/201811:0011:59111008911%
01/04/201812:0012:59121008812%
01/04/201813:0013:59131008713%
01/04/201814:0014:59141008614%
01/04/201815:0015:59151008515%
01/04/201816:0016:59161008416%
01/04/201817:0017:59171008317%
01/04/201818:0018:59181008218%
01/04/201819:0019:59191008119%
01/04/201820:0020:59201008020%
01/04/201821:0021:59211007921%
01/04/201822:0022:59221007822%
01/04/201823:0023:59231007723%
02/04/201800:0000:59241007624%
02/04/201801:0001:59251007525%
02/04/201802:0002:59261007426%
02/04/201803:0003:59271007327%
02/04/201804:0004:59281007228%
02/04/201805:0005:59291007129%
02/04/201806:0006:59301007030%
02/04/201807:0007:59311006931%
02/04/201808:0008:59321006832%
02/04/201809:0009:59331006733%
02/04/201810:0010:59341006634%
02/04/201811:0011:59351006535%
02/04/201812:0012:59361006436%
02/04/201813:0013:59371006337%
02/04/201814:0014:59381006238%
02/04/201815:0015:59391006139%
02/04/201816:0016:59401006040%
02/04/201817:0017:59411005941%
02/04/201818:0018:59421005842%
02/04/201819:0019:59431005743%
02/04/201820:0020:59441005644%
02/04/201821:0021:59451005545%
02/04/201822:0022:59461005446%
02/04/201823:0023:59471005347%

<tbody>
</tbody>

I hope I have explained it clearly above, if there is anything that doesn’t make sense or not clear enough, please can you let me know, so I can try give more details.

Many thanks in advance for your time and help.

Much appreciated :):):)
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Re: How to calculate Car Park Occupancy rate - Help !!!

Hi. You cant have number of cars in the car park at a time interval eg 00:00 to 00:59. You can however have number of cars in the car park at a moment in time eg 00:00
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Thanks Steve for your prompt reply. Ideally i like to have the total number of car in that time slot, i thought may be there is way with If / between function. anyhow what you mentioned would be a good start for me. would you be able to provide the formula for that ?
Cheers
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

A time interval just wouldnt work. There would be cars in and out in that interval. Its a fluid thing so a moment in time is the only solution. Anyway pasting your first table into A1:B13 and the second into G1:M49 try this in J2 and copy down:

=COUNTIFS(A:A,"<="&G2+H2,B:B,">="&G2+H2)

The occupancy rate is simply the result of the above divided by the total number of spaces.
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

A time interval just wouldnt work. There would be cars in and out in that interval. Its a fluid thing so a moment in time is the only solution. Anyway pasting your first table into A1:B13 and the second into G1:M49 try this in J2 and copy down:

=COUNTIFS(A:A,"<="&G2+H2,B:B,">="&G2+H2)

The occupancy rate is simply the result of the above divided by the total number of spaces.

one problem is that it didn't account for cars that enter after the start and before the end period
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

one problem is that it didn't account for cars that enter after the start and before the end period

Thats because, as i say, there is no end... its a moment in time.
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Thats because, as i say, there is no end... its a moment in time.

but sure, that should be enough data there to work out how many cars in the car park.

said from the guy still wouldn't find a solution, :(
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

How could you work out how many cars were there for an interval? Its fluid.
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

How could you work out how many cars were there for an interval? Its fluid.

I'm working on it, let say between time T1 and T2, the cars will be there if

1) car enter before T1 and leave after T1,
2) car enter between T1 and T2
3) car leave between T1 and T2

the problem is I'm not sure how to combine them together
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

I think you will be there a while to say x number of cars were there between two times. Its not possible unless they are only allowed in on the hour and have to leave at 59 minutes past the hour. You could work out an average i suppose but the average would be an average of moments in time within the interval.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

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