+ Reply to Thread
Results 1 to 15 of 15

Rolling 12 month table from data range

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Rolling 12 month table from data range

    Hi
    I am trying to create a rolling 12 month graph by first building a table based upon date data contained within a named range.
    The table will contain counts of the number of times a date from the given month appears. I am having trouble building the
    formula to correctly select the month and year. I am working backwards in that in the last column will be this months data
    and I want to be able to just -1 to go back one month and so on until I build the 12 month history.

    I have attached the spreadsheet. Rows 22, 23 and 24 coloured in green is what I am trying to calculate.

    Any assistance is greatly appreciated.

    Cheers
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Rolling 12 month table from data range

    just moving this post higher again

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rolling 12 month table from data range

    Hi Malaka76,

    Those cells are already having sumproduct formulas in them..D22 is 19.. what result you want there ?
    Can you manually fill the expected results in some cells and I will try to obtain them using functions? thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Rolling 12 month table from data range

    Hi DILIPandey

    I have added the expected values and also for reference the month/year in row 21 (but this should automatically change each month)

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rolling 12 month table from data range

    Hi Malaka76,

    See the attached file where I have used the below formula in yellow cell-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and asked questions for blue cells... thanks.

    Request Register V1c.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Rolling 12 month table from data range

    Hi DILIPandey

    1. D22 - O22 needs to count the number of requests closed during the month indicated in D20-020. The cell in purple is the corresponding cell in the yearly data.
    2. The Outstanding @ EOM D23 - O23 needs to count the number of requests open at the end of the month indicated in D20-O20

    I have added notes to the bottom of the table to explain how I expect to calculate the totals.

    I am just stuck on how to use the formula to count only the months and year and ignore the day.

    Version d uploaded.

    ThanksRequest Register V1d.xlsx

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rolling 12 month table from data range

    Okay.. just checked and found that you already have the formula and correct results in L16:L18.. now what you want to do next ? Is there any issue using the same formulas in row 21,22 and 23 ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  8. #8
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Rolling 12 month table from data range

    Rows 16,17and 18 are for the year selected in B9.
    I want rows 21,22 and 23 to be rolling 12 months (ie go back 12 consecutive months.)

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Rolling 12 month table from data range

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I apologize for the inconvenience.

    Simple curiosity. What does malaka means, on your language?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rolling 12 month table from data range

    Okay malaka76, so you are fine with the calculation formulas in row 16,17,18 and just need the rolling 12 months data summed up in row 21,22,23 ?

    One more thing.. do you want D20 to always show current month ? I am thinking to expanding the formulas in row 16,17,18 to accommodate the previous 12 months from D20.. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  11. #11
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Rolling 12 month table from data range

    No I need to calculate the years total seperate to the rolling 12 months so the 2 calculations will be seperate.

    Thanks

  12. #12
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rolling 12 month table from data range

    just need the rolling 12 months data summed up in row 21,22,23 ?
    One more thing.. do you want D20 to always show current month ?
    My queries are still not answered .. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  13. #13
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Rolling 12 month table from data range

    No I do not need the rolling 12 months summed up
    D20 yes as this is the axis labels for my data.

    thanks

  14. #14
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rolling 12 month table from data range

    Hi Malaka76,

    but you confirmed in your post #8 as :-

    I want rows 21,22 and 23 to be rolling 12 months (ie go back 12 consecutive months.)
    Your queries are not clear.. sorry.

    Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  15. #15
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Rolling 12 month table from data range

    rows 21,22 and 23 each column will detail the total requests that fall in the particular month (row 20). At the end of the columns (ie colum P) i do not want totals for cells D thru O

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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