shifting a load of Electric Vehicle to the next row if a condition is not fulfulled in excel

烈酒焚心 提交于 2019-12-11 15:17:29

问题


I am making a scenario in excel where Electric vehicles are being charged in a given time range. i have a neighborhood loads and the load of EV at specific times. the cable capacity is 50 kW (means the combined load of EV and household should not exceed this value). is there a formula, which checks if the combined load of EV and household is below 50 kW, then leaves it unchanged. if it is more than 50KW then shifts the EV load to next row and checks for the condition again if satisfied it is less then 50kw it adds it here otherwise shift to the next row until the condition is satisfied.

I have attached the sample excel file for clarification. more text in the file explains the case

picture below shows the data in the Excel file EV scenario

EV scenario

any help would be appreciated

Best,

https://1drv.ms/x/s!ArYn8TW3_a3d3n6MbEjcWsfkdB3q


回答1:


I see that there is a way to check if the entered time is ok and propose for the next slot, but the user need to manually change the charging time. "checks if the combined load of EV and household is below 50 kW" > ok, "then leaves it unchanged" > Need macro to do it. In this solution, it will propose the next time slot, but user will need to re-enter the new time manually, and it will re-calculate/re-check the loading.

+-----[Steps]-----+

Assume column F & G as the only input, and all EV is 11kW. I'm proposing :

For the 1st EV : Enter the start time > Check the total loading (for 4 slots) from the time selected > if total load < 50kW, display "OK". Else, display "Select new time".

for the 2nd EV : Enter the start time > Check the total loading (for 4 slots) from the time selected PLUS loading from all previous EV > if total load < 50kW, display "OK". Else, display "Select new time".

for the 3rd EV : Enter the start time > Check the total loading (for 4 slots) from the time selected PLUS loading from all previous EV > if total load < 50kW, display "OK". Else, display "Select new time".

for the 4th EV : Enter the start time > Check the total loading (for 4 slots) from the time selected PLUS loading from all previous EV > if total load < 50kW, display "OK". Else, display "Please select next time slot".

and so on.

For each "Please select next time slot" notice, a proposed time will be displayed.

+-----[simple notes]-----+

For all these to work, need quite some work.. but it is principally straightforward. God willing. (:

attached file : https://yadi.sk/i/ssbPQaZ13ZQSpb

Note : - Column O to Column AH contain all the formulas. Just unhide it to see the details. - linking the file data to external file/links can make the time cannot be propertily resolved in match() function. Alternatively, you may replace the time column with running numbers instead. eg. 12:00 > 1, 12:15 > 2, 15:45 > 63 and so on.

Hope that helps. (:



来源:https://stackoverflow.com/questions/51429701/shifting-a-load-of-electric-vehicle-to-the-next-row-if-a-condition-is-not-fulful

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!