I need help calculating the cost of energy per product produced. The information I have available is:
The electricity data is metered on a half-hourly basis and is in the following format:
A B C
1 01/10/2012 02/10/2012
2 00:00 100.00 200.00
3 00:30 150.00 100.00
4 01:00 125.00 250.00
The product itself takes around 30-45 mins to make therefore it could fall between two time periods, i.e. start = 00:27 end = 01:06
The format of the sheet where the calculation will be based is as follows (simplified version as not all data is relevant):
Date Product Start Finish Time Taken Electricity Cost
01/10/12 Widget 1 13:00 13:37 00:37 £ X
01/10/12 Widget 2 13.37 14:15 00:38 £ X
What I need is the calculation to look at the start time, end time and time taken and apportion the relevant costs for the time periods it falls within, for example:
Widget one uses 30 mins of the half-hourly cost between 13:00 & 13:30 and then a further 7 mins of the half-hourly cost between 13:30 & 14:00 so a lookup of sorts would need to be performed to extract the relevant costs, break them down and then apply the relevant costs apportioned to the time used.
Could someone please try and help me find a solution to this as I can't wrap my head around it.
I have attached an example for you to look at - the spreadsheet contains two workbooks, one being the electricity cost and the other being the production list where I need the formula to be entered. Please forgive the poor formatting, I had to quickly prepare a basic version for this post.
If you need any more information then please let me know.
Thanks,
Bookmarks