Car Park Occupancy rate

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.

[TABLE="class: grid, width: 610"]
<tbody>[TR]
[TD]Session Start[/TD]
[TD]Session End[/TD]
[TD]Duration (in Mins)[/TD]
[TD]VRN[/TD]
[TD]Car Park[/TD]
[/TR]
[TR]
[TD]01/04/2018 04:22[/TD]
[TD]01/04/2018 17:59[/TD]
[TD]817[/TD]
[TD]****UXZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 05:18[/TD]
[TD]01/04/2018 17:59[/TD]
[TD]761[/TD]
[TD]****OXZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 05:53[/TD]
[TD]01/04/2018 17:59[/TD]
[TD]726[/TD]
[TD]****PTZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 06:03[/TD]
[TD]01/04/2018 17:59[/TD]
[TD]716[/TD]
[TD]****MGZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 06:15[/TD]
[TD]01/04/2018 17:59[/TD]
[TD]704[/TD]
[TD]****LBZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 06:53[/TD]
[TD]01/04/2018 11:00[/TD]
[TD]247[/TD]
[TD]****SKZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 06:57[/TD]
[TD]01/04/2018 15:00[/TD]
[TD]483[/TD]
[TD]****FBZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 07:03[/TD]
[TD]01/04/2018 17:59[/TD]
[TD]656[/TD]
[TD]****KDZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 07:10[/TD]
[TD]01/04/2018 17:59[/TD]
[TD]649[/TD]
[TD]****EHZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 20:40[/TD]
[TD]02/05/2018 18:59[/TD]
[TD]1339[/TD]
[TD]****ZHZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 20:44[/TD]
[TD]02/05/2018 18:59[/TD]
[TD]1335[/TD]
[TD]****JMZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
[TR]
[TD]01/04/2018 21:14[/TD]
[TD]02/05/2018 16:59[/TD]
[TD]1185[/TD]
[TD]****FFZ[/TD]
[TD]Car Park 1[/TD]
[/TR]
</tbody>[/TABLE]

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.
[TABLE="class: grid, width: 625"]
<tbody>[TR]
[TD]Date[/TD]
[TD="colspan: 2"]Time Period[/TD]
[TD]No of car in car park [/TD]
[TD]Total space[/TD]
[TD]space available[/TD]
[TD]Occupancy rate in %[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]00:00[/TD]
[TD]00:59[/TD]
[TD]0[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]01:00[/TD]
[TD]01:59[/TD]
[TD]1[/TD]
[TD]100[/TD]
[TD]99[/TD]
[TD]1%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]02:00[/TD]
[TD]02:59[/TD]
[TD]2[/TD]
[TD]100[/TD]
[TD]98[/TD]
[TD]2%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]03:00[/TD]
[TD]03:59[/TD]
[TD]3[/TD]
[TD]100[/TD]
[TD]97[/TD]
[TD]3%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]04:00[/TD]
[TD]04:59[/TD]
[TD]4[/TD]
[TD]100[/TD]
[TD]96[/TD]
[TD]4%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]05:00[/TD]
[TD]05:59[/TD]
[TD]5[/TD]
[TD]100[/TD]
[TD]95[/TD]
[TD]5%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]06:00[/TD]
[TD]06:59[/TD]
[TD]6[/TD]
[TD]100[/TD]
[TD]94[/TD]
[TD]6%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]07:00[/TD]
[TD]07:59[/TD]
[TD]7[/TD]
[TD]100[/TD]
[TD]93[/TD]
[TD]7%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]08:00[/TD]
[TD]08:59[/TD]
[TD]8[/TD]
[TD]100[/TD]
[TD]92[/TD]
[TD]8%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]09:00[/TD]
[TD]09:59[/TD]
[TD]9[/TD]
[TD]100[/TD]
[TD]91[/TD]
[TD]9%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]10:00[/TD]
[TD]10:59[/TD]
[TD]10[/TD]
[TD]100[/TD]
[TD]90[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]11:00[/TD]
[TD]11:59[/TD]
[TD]11[/TD]
[TD]100[/TD]
[TD]89[/TD]
[TD]11%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]12:00[/TD]
[TD]12:59[/TD]
[TD]12[/TD]
[TD]100[/TD]
[TD]88[/TD]
[TD]12%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]13:00[/TD]
[TD]13:59[/TD]
[TD]13[/TD]
[TD]100[/TD]
[TD]87[/TD]
[TD]13%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]14:00[/TD]
[TD]14:59[/TD]
[TD]14[/TD]
[TD]100[/TD]
[TD]86[/TD]
[TD]14%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]15:00[/TD]
[TD]15:59[/TD]
[TD]15[/TD]
[TD]100[/TD]
[TD]85[/TD]
[TD]15%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]16:00[/TD]
[TD]16:59[/TD]
[TD]16[/TD]
[TD]100[/TD]
[TD]84[/TD]
[TD]16%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]17:00[/TD]
[TD]17:59[/TD]
[TD]17[/TD]
[TD]100[/TD]
[TD]83[/TD]
[TD]17%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]18:00[/TD]
[TD]18:59[/TD]
[TD]18[/TD]
[TD]100[/TD]
[TD]82[/TD]
[TD]18%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]19:00[/TD]
[TD]19:59[/TD]
[TD]19[/TD]
[TD]100[/TD]
[TD]81[/TD]
[TD]19%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]20:00[/TD]
[TD]20:59[/TD]
[TD]20[/TD]
[TD]100[/TD]
[TD]80[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]21:00[/TD]
[TD]21:59[/TD]
[TD]21[/TD]
[TD]100[/TD]
[TD]79[/TD]
[TD]21%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]22:00[/TD]
[TD]22:59[/TD]
[TD]22[/TD]
[TD]100[/TD]
[TD]78[/TD]
[TD]22%[/TD]
[/TR]
[TR]
[TD]01/04/2018[/TD]
[TD]23:00[/TD]
[TD]23:59[/TD]
[TD]23[/TD]
[TD]100[/TD]
[TD]77[/TD]
[TD]23%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]00:00[/TD]
[TD]00:59[/TD]
[TD]24[/TD]
[TD]100[/TD]
[TD]76[/TD]
[TD]24%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]01:00[/TD]
[TD]01:59[/TD]
[TD]25[/TD]
[TD]100[/TD]
[TD]75[/TD]
[TD]25%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]02:00[/TD]
[TD]02:59[/TD]
[TD]26[/TD]
[TD]100[/TD]
[TD]74[/TD]
[TD]26%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]03:00[/TD]
[TD]03:59[/TD]
[TD]27[/TD]
[TD]100[/TD]
[TD]73[/TD]
[TD]27%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]04:00[/TD]
[TD]04:59[/TD]
[TD]28[/TD]
[TD]100[/TD]
[TD]72[/TD]
[TD]28%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]05:00[/TD]
[TD]05:59[/TD]
[TD]29[/TD]
[TD]100[/TD]
[TD]71[/TD]
[TD]29%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]06:00[/TD]
[TD]06:59[/TD]
[TD]30[/TD]
[TD]100[/TD]
[TD]70[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]07:00[/TD]
[TD]07:59[/TD]
[TD]31[/TD]
[TD]100[/TD]
[TD]69[/TD]
[TD]31%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]08:00[/TD]
[TD]08:59[/TD]
[TD]32[/TD]
[TD]100[/TD]
[TD]68[/TD]
[TD]32%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]09:00[/TD]
[TD]09:59[/TD]
[TD]33[/TD]
[TD]100[/TD]
[TD]67[/TD]
[TD]33%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]10:00[/TD]
[TD]10:59[/TD]
[TD]34[/TD]
[TD]100[/TD]
[TD]66[/TD]
[TD]34%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]11:00[/TD]
[TD]11:59[/TD]
[TD]35[/TD]
[TD]100[/TD]
[TD]65[/TD]
[TD]35%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]12:00[/TD]
[TD]12:59[/TD]
[TD]36[/TD]
[TD]100[/TD]
[TD]64[/TD]
[TD]36%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]13:00[/TD]
[TD]13:59[/TD]
[TD]37[/TD]
[TD]100[/TD]
[TD]63[/TD]
[TD]37%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]14:00[/TD]
[TD]14:59[/TD]
[TD]38[/TD]
[TD]100[/TD]
[TD]62[/TD]
[TD]38%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]15:00[/TD]
[TD]15:59[/TD]
[TD]39[/TD]
[TD]100[/TD]
[TD]61[/TD]
[TD]39%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]16:00[/TD]
[TD]16:59[/TD]
[TD]40[/TD]
[TD]100[/TD]
[TD]60[/TD]
[TD]40%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]17:00[/TD]
[TD]17:59[/TD]
[TD]41[/TD]
[TD]100[/TD]
[TD]59[/TD]
[TD]41%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]18:00[/TD]
[TD]18:59[/TD]
[TD]42[/TD]
[TD]100[/TD]
[TD]58[/TD]
[TD]42%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]19:00[/TD]
[TD]19:59[/TD]
[TD]43[/TD]
[TD]100[/TD]
[TD]57[/TD]
[TD]43%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]20:00[/TD]
[TD]20:59[/TD]
[TD]44[/TD]
[TD]100[/TD]
[TD]56[/TD]
[TD]44%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]21:00[/TD]
[TD]21:59[/TD]
[TD]45[/TD]
[TD]100[/TD]
[TD]55[/TD]
[TD]45%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]22:00[/TD]
[TD]22:59[/TD]
[TD]46[/TD]
[TD]100[/TD]
[TD]54[/TD]
[TD]46%[/TD]
[/TR]
[TR]
[TD]02/04/2018[/TD]
[TD]23:00[/TD]
[TD]23:59[/TD]
[TD]47[/TD]
[TD]100[/TD]
[TD]53[/TD]
[TD]47%[/TD]
[/TR]
</tbody>[/TABLE]

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

you might be right, but i'm not giving up just yet
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Re: How to calculate Car Park Occupancy rate - Help !!!

try this


Excel 2013/2016
ABFGHIJ
1Session StartSession EndDateTime PeriodNo of car in car park
201/04/2018 04:2201/04/2018 17:5901/04/201800:0000:590
301/04/2018 05:1801/04/2018 17:5901/04/201801:0001:590
401/04/2018 05:5301/04/2018 17:5901/04/201802:0002:590
501/04/2018 06:0301/04/2018 17:5901/04/201803:0003:590
601/04/2018 06:1501/04/2018 17:5901/04/201804:0004:591
701/04/2018 06:5301/04/2018 11:0001/04/201805:0005:593
801/04/2018 06:5701/04/2018 15:0001/04/201806:0006:597
901/04/2018 07:0301/04/2018 17:5901/04/201807:0007:599
1001/04/2018 07:1001/04/2018 17:5901/04/201808:0008:5910
1101/04/2018 08:1002/04/2018 18:5901/04/201809:0009:5910
1201/04/2018 20:4402/04/2018 18:5901/04/201810:0010:5910
1301/04/2018 21:1402/04/2018 16:5901/04/201811:0011:5910
1401/04/201812:0012:599
1501/04/201813:0013:599
1601/04/201814:0014:599
1701/04/201815:0015:599
1801/04/201816:0016:598
1901/04/201817:0017:598
2001/04/201818:0018:591
2101/04/201819:0019:591
2201/04/201820:0020:592
2301/04/201821:0021:593
2401/04/201822:0022:593
2501/04/201823:0023:593
2602/04/201800:0000:593
2702/04/201801:0001:593
2802/04/201802:0002:593
2902/04/201803:0003:593
3002/04/201804:0004:593
3102/04/201805:0005:593
3202/04/201806:0006:593
3302/04/201807:0007:593
3402/04/201808:0008:593
3502/04/201809:0009:593
3602/04/201810:0010:593
3702/04/201811:0011:593
3802/04/201812:0012:593
3902/04/201813:0013:593
4002/04/201814:0014:593
4102/04/201815:0015:593
4202/04/201816:0016:593
4302/04/201817:0017:592
4402/04/201818:0018:592
4502/04/201819:0019:590
4602/04/201820:0020:590
4702/04/201821:0021:590
4802/04/201822:0022:590
4902/04/201823:0023:590
Sheet3
Cell Formulas
RangeFormula
J2=SUMPRODUCT(--($A$2:$A$13<=(G2+H2)),(--($B$2:$B$13>=(G2+H2))))+SUMPRODUCT(--($A$2:$A$13>=(G2+H2)),(--($A$2:$A$13<=(G2+I2))))
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Ill put this to you. If i was to ask the question 'how many cars are there in the car park next week' you would think i had gone mad. It makes no sense. Next week is a time interval just the same as these hourly ones. They make no sense either.
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

but it's not a prediction for future, is it? At least I hope it isn't.

just a data analysis based on past record.
 
Last edited:
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Ok 'how many cars were there in the car park last week'. Still makes no sense. Its a question that cant be answered is what im trying to say.
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Ok 'how many cars were there in the car park last week'. Still makes no sense. Its a question that cant be answered is what im trying to say.

well, what I call tell you or the OP is

there are 10 cars parked there on 01/04/2018 between 08:00 and 08:59 , or
8 between 17:00 and 17:59 etc

I believe this is what the OP asked for, i may be wrong though
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Hi Alan,

Thanks very much for your help with this. I think you have resolved my query. you are star.

Hi Steve,

Thanks for your help and input as well. I may have not been clear. i only need to look at the past data and tell how busy the car park was, and analyse the average occupancy rate based on hourly occupancy. so i think Alan solution would solve my problem.

Thank you both. I can now go back and load the whole load of data and start analysing.
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Ok try this example. How many were parked there between:

01/04/2018 04:00 and 01/04/2018 04:59.

At 04:00 there were none. At 04:10 there were none. At 4:20 there were none. At 4:30 there was 1. etc etc. So is the answer 1 or is it 0? The answer is actually there is no answer. The question is nonsensical. The number of cars parked is only possible to answer at a moment in time not a time interval. You could say there was an average of just less than 0.5 between the two times.
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

Ok try this example. How many were parked there between:

01/04/2018 04:00 and 01/04/2018 04:59.

At 04:00 there were none. At 04:10 there were none. At 4:20 there were none. At 4:30 there was 1. etc etc. So is the answer 1 or is it 0? The answer is actually there is no answer. The question is nonsensical. The number of cars parked is only possible to answer at a moment in time not a time interval. You could say there was an average of just less than 0.5 between the two times.

only now I realised what are you saying.

ok, the answer to a different question is

there is 1 car max. during that period 01/04/2018 04:00 and 01/04/2018 04:59.

again, we are not sure what exactly the OP after
 
Upvote 0
Re: How to calculate Car Park Occupancy rate - Help !!!

even that is not right!

if 1 left at 4:15 and another one enter on 4:30 that will b**8 off the numbers.
time to go home
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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