Hi there,
I need a little help on apportioning values taken from an invoice correctly across the months the invoice covers. Here’s a simple example:
Inputs:
Invoice Start Date = 05/02/2012
Invoice End Date = 20/04/2012
(ie total days = 74 (ie 24 x Feb, 31 x March, 19 x April)
Electricity Consumption for period = 1,000kWh
The outputs I need would be:
Feb kWh = (24/74)*1000=324
March kWh = (31/74)*1000=419
April kWh = (19/74)*1000=257
I am trying to create a table with a layout as per below, which is able to auto-populate the applicable months with the corresponding apportioned kWh values for each invoice (COLUMNS E-I), based on the values input in columns A,B and D. The nested IF statements I am writing are getting way to out of control, hence why I have arrived here, coz I know there’s got to be a smarter way.
Can someone please help me?
Thanks.
A B C D E F G H I
Start End Days kWh Jan-2012 Feb-2012 Mar-2012 Apr-2012 May-2012
5/02/2012 20/04/2012 74 1000 0 324 419 257 0
I need a little help on apportioning values taken from an invoice correctly across the months the invoice covers. Here’s a simple example:
Inputs:
Invoice Start Date = 05/02/2012
Invoice End Date = 20/04/2012
(ie total days = 74 (ie 24 x Feb, 31 x March, 19 x April)
Electricity Consumption for period = 1,000kWh
The outputs I need would be:
Feb kWh = (24/74)*1000=324
March kWh = (31/74)*1000=419
April kWh = (19/74)*1000=257
I am trying to create a table with a layout as per below, which is able to auto-populate the applicable months with the corresponding apportioned kWh values for each invoice (COLUMNS E-I), based on the values input in columns A,B and D. The nested IF statements I am writing are getting way to out of control, hence why I have arrived here, coz I know there’s got to be a smarter way.
Can someone please help me?
Thanks.
A B C D E F G H I
Start End Days kWh Jan-2012 Feb-2012 Mar-2012 Apr-2012 May-2012
5/02/2012 20/04/2012 74 1000 0 324 419 257 0