+ Reply to Thread
Results 1 to 17 of 17

How do i average two coloumns for 6 months rolling

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9

    How do i average two coloumns for 6 months rolling

    Hi,
    I need some help with regards a spread sheet,i need to know how to calculate a six month rolling average for hours in AD column and AE column, this average would be entered in to AF1.
    the date column is AC the date is not consecutive it does miss days out.

    Hope someone can help and if i need to give anymore information just ask.

    Chris[/CENTER]
    Last edited by Murphy1985; 10-07-2008 at 08:38 AM.

  2. #2
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    You didn't post a spreadsheet, but is AE subtracted from AD or what?

  3. #3
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9
    Quote Originally Posted by martesoft View Post
    You didn't post a spreadsheet, but is AE subtracted from AD or what?
    Apologies it didnt seem to want to let me post the spread sheet, AE and AD are hours worked on overtime, so they both need to be added on the six month rolling total.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You should be able to attach a workbook unless it is too big.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9

    sorry

    sorry about my lack of observation skills and not attaching a copy of file, I have now, its the D6 HRS and the column next to it "hours" that need to be a 6 month rolling average, as basically we can not go over a certain combined overtime average for 6 months.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    I have absoluetly no idea what is supposed to be added to/averaged over what in that spreasdheet. You have numbers all over the place.

  7. #7
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9

    explantion

    Each person has their own over time section with 4 columns "date, D6 hours, Overtime hours, Description", so for each person i.e James Bessant the first one, in Row 2 just above his name, i need a 6month rolling average total, so from when ever the spread sheet is opened and than 6 months previous to that I need the total of their D6 hours and Overtime Hours.

    hope this explans it a bit better, sorry.

  8. #8
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    Not really, it still doesn't tell me where those overtime hours are, are they in column E, F, both, neither?

    Does 6 months mean say from 7th APril or 1st APril or 1st May?

    Here is a starter to get the dates that are greater than 1st APril today, but I am still unclear as to what else is to be included

    SUMPRODUCT(--(D$6:D$150>=DATE(YEAR(TODAY()),MONTH(TODAY())-6,1)))

  9. #9
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9
    Quote Originally Posted by martesoft View Post
    Not really, it still doesn't tell me where those overtime hours are, are they in column E, F, both, neither?

    Does 6 months mean say from 7th APril or 1st APril or 1st May?

    Here is a starter to get the dates that are greater than 1st APril today, but I am still unclear as to what else is to be included

    SUMPRODUCT(--(D$6:D$150>=DATE(YEAR(TODAY()),MONTH(TODAY())-6,1)))
    Both E and F columns are to be included in the 6 month total, and the 6 months refers to 6 months back from now so it is the 7/10/2008 so i want to go from 7/04/2008 and then tomorrow its would be the 8/04/2008 and so on.

  10. #10
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    Okay so far so good, but what is 6 months back from say 31st August?

  11. #11
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9
    aaaa i see what you meant now, the 28th of Feb would do if that could be done.

  12. #12
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    I hope that you meant 29th Feb (for this year) :-)

    Here is my latest attempt

    =E$5+SUMPRODUCT(--(D$6:D$150>=MIN(DATE(YEAR(TODAY()),MONTH(TODAY())-{6,5},DAY(TODAY())*{1,0}))),E$6:E$150+F$6:F$150)

  13. #13
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9
    yea, of course :D, that came back with a total of 99, the six month total for James is actually 77 so far.

  14. #14
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    Why is is 77 Chris, tell me what line the numbers to add start at? I also added the 32 D6 hours, is that right?

  15. #15
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9
    77 comes from today(7/10/2008) back to the (7/04/2008) so that basically includes dates (5/10/2008) to (5/10/2008) and that total for both columns is 77. so thats D14 to D38.

  16. #16
    Registered User
    Join Date
    10-07-2008
    Location
    Wessex
    Posts
    55
    Okay, so I added the 32 incorrec tly, but 6 months prior to today does NOT include 5th April nor the 6th April, they are just prior to 6 months ago. That gives D16 throughD26, a sum of 67, which works if you strip off the E$5+ from my formula.
    Last edited by martesoft; 10-07-2008 at 11:35 AM.

  17. #17
    Registered User
    Join Date
    10-07-2008
    Location
    UK
    Posts
    9
    Fantastic works, Excel genius you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 12 Month rolling average.
    By Glen Blaha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2008, 09:20 AM
  2. Excel charting - Use Trendline (6 mos Rolling Average)
    By rockycj in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-22-2008, 03:10 PM
  3. 12 months rolling data in graph format
    By brissy in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-20-2007, 08:05 AM
  4. average rolling periods
    By RobPatrick in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2007, 05:26 AM
  5. Rolling 12 month average
    By tclaud in forum Excel General
    Replies: 1
    Last Post: 10-16-2006, 03:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1