distribution of time values randomly in a table

osk89

New Member
Joined
Jul 21, 2018
Messages
16
Actually I am working on a model of charging load of electric vehicle. I am attaching a link to an excel workbook for your better understanding.

Column B contains random time values, these time values can vary in number and depend on total number of cars. So e.g. total number of cars are 40 and if I am taking 10% EV penetration then 4 time values will be there on which 4 cars are plugged in. similarly 8 cars and 8 time values if I select 20% etc. I will have different table for different penetration level. i.e. 10 tables from 10-100%.
Column G to P represents houses and each house can have 1 car. So the time values need to be distributed in the columns. Now when a car is plugged in, its load stays for 8,3 or 2 cells depending on the charger capacity we are using, in example file I use 11 kW so the car load will stay for 3 cells . (I should be able to change the charging capacity)

I want excel to randomly distribute these cars e.g. 4 cars to 4 houses and leave others blank. Can you please help me with the formulas to achieve this result.


Waiting for your reply. Your help will be really appreciated.


Kind Regards,



https://1drv.ms/x/s!ArYn8TW3_a3d3xKqxzJP2-7fnrLv
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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