Hello,
The goal of this code is to take 4 time values, timeon, timeoff, peakstart, and peakend. These are time formatted cells in excell that will vary in actual time.
Then, I have it count how many minutes of the appliance is on during peak hours.
The end result I am looking for is for it to output the peak hours in the cell the function is in, and the nonpeak hours in the cell one column to the right, in number form, not time.
I keep getting a #Value, but cannot figure out why or what I am doing wrong.
Here is the main block of code
Here is a function I call in that code.
If you could help me out, that would be great.
Mike
Bookmarks