Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Brian Ferris
 
Posts: n/a
Default No. of days split into periods

Hi,

Here is one for you guys:

I have the following data electricity meter readings registered which I
want to split between pre-defined periods:

Data available:

15-Jan-06 78 days
30-Dec-05 300 days
14-Oct-05 200 days
30-Nov-05 45 days


Data required:

I need to split these readings into brackets and obtain the following answers:

Jan-06 Dec-05 Nov-05 Oct-05
Reading 1 15 days 31 days 30 days 2 days
etc etc

Any ideas....??

Thanks in advance
Brian
  #2   Report Post  
Posted to microsoft.public.excel.misc
bob777
 
Posts: n/a
Default No. of days split into periods


Brian,

I cannot understand what you are asking. Are the readings from the same
meter and you want to work out consumption per calendar month?


--
bob777
------------------------------------------------------------------------
bob777's Profile: http://www.excelforum.com/member.php...o&userid=28504
View this thread: http://www.excelforum.com/showthread...hreadid=506703

  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default No. of days split into periods

Hi Brian,

A possible solution might be (cells A!:D4, the dates in first row start
in C1):

01/01/2006 01/12/2005
15/01/2006 78 15 31
30/12/2005 300 - 30
14/10/2005 200 - -

These cells shown as formulas:
38718 =DATE(YEAR(C1),MONTH(C1)-1,1)
38732 78 =IF($A2=C$1,MIN($A2-C$1+1,$B2),0) =IF($A2=D$1,MIN(MIN(C$1,$A2+1)-D$1,$B2-SUM($C2:C2)),0)
38716 300 =IF($A3=C$1,MIN($A3-C$1+1,$B3),0) =IF($A3=D$1,MIN(MIN(C$1,$A3+1)-D$1,$B3-SUM($C3:C3)),0)
38639 200 =IF($A4=C$1,MIN($A4-C$1+1,$B4),0) =IF($A4=D$1,MIN(MIN(C$1,$A4+1)-D$1,$B4-SUM($C4:C4)),0)

Copy column D as far to the right as necessary.

HTH,
Bernd

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar Days and Option Buttons Andy Excel Discussion (Misc queries) 0 January 10th 06 10:50 PM
30, 60, 90 days late and due within 14 days armyaviatr Excel Discussion (Misc queries) 1 November 7th 05 10:14 AM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 09:00 PM
Please help!! Vacation Accrual Formula MissNadine Excel Worksheet Functions 1 August 19th 05 03:32 AM
Vacation Accrual Formula MissNadine Excel Worksheet Functions 0 August 18th 05 05:02 AM


All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"