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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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