+ Reply to Thread
Results 1 to 12 of 12

Create financial report by quarter and month

  1. #1
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    80

    Create financial report by quarter and month

    Hello,

    I have data that I need to summarize in various ways based on the "date" field.
    I need to summarize the totals by quarter, month, quarter by department, etc. I am attaching a file.
    I appreciate any help formula or VBA
    Financial Report Summary.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,957

    Re: Create financial report by quarter and month

    If you add a helper column to show quarters, you could probably do this with a Pivit Table.

    This, in I2, copied down, will give you quarters...
    =IF(MONTH(E2)>9,4,IF(MONTH(E2)>6,3,IF(MONTH(E2)>3,2,1)))

    Here is a sample of what it could look like, see if this is something you can work with?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Create financial report by quarter and month

    Hi,

    Pivots can be GROUPED by year and quarter. You shouldn't need helper columns to split these out. See the attached for an example. I believe all your tables can be done using Pivots.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,957

    Re: Create financial report by quarter and month

    Thanks for the assist Marvin, PT's are not my strong side, but I figured it was a good way to start.

    Without intending to hi-jack this thread (Im sure the OP will ask this anyway) where does teh Years field come from, it it a calc'd field?

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Create financial report by quarter and month

    After you drag the date field down to the Rows section in the Pivot List, right click on the date in the Pivot.

    THEN click on GROUP and if all the dates are real dates you can select how to group those dates.

    See the picture and examples at http://www.contextures.com/xlPivot07.html

    Also - they are Pivots Tables (not Pivits)

  6. #6
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Create financial report by quarter and month

    UPDATE: did not see MarvinP's response before I post my follow up question below .. Now I know that I can group by month as well
    I just need to make the pivot dynamic, and updated with any new data that would be added

    Thanks
    ===================

    Thanks all,
    How can I create pivot table for the months? Do I need a helper column for it?
    Can I set the pivot table to expand automatically if I added more data?

    Thanks again
    Last edited by adelkam; 11-09-2014 at 10:02 PM.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,957

    Re: Create financial report by quarter and month

    Quote Originally Posted by MarvinP View Post
    After you drag the date field down to the Rows section in the Pivot List, right click on the date in the Pivot.

    THEN click on GROUP and if all the dates are real dates you can select how to group those dates.

    See the picture and examples at http://www.contextures.com/xlPivot07.html

    Also - they are Pivots Tables (not Pivits)
    aahh good to know, thanks

    And thanks for picking up on my typo

  8. #8
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Create financial report by quarter and month

    Thanks FDibbins & MarvinP ,

    I figured out the dynamic range as well. Thanks for your help. It appears that the pivot table is powerful. I need to learn more about it!

    Thanks again

  9. #9
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Create financial report by quarter and month

    OK here you go....

    I created a Dynamic Named Range on your data and called it DNRData. You need to look at the Names Manager to see how I did that.
    THEN let the Pivot Table data come from this DNRData so it will span any new or removed data.
    THEN I put an Event Macro behind the sheet to Refresh All pivot tables when you click on the Pivot Table sheet.

    You might need to learn Event Macros and DNR's along with how Pivots can use a named range for its data. See the attached.

    Change some of the data and then click on the Pivot Tab (mine) and see that the numbers will reflect the new data.

  10. #10
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Create financial report by quarter and month

    Thanks alot MarvinP

    This is cool!

    one last question: I created another pivot table and tried to group data differently (by month), but it changes the grouping in the first pivot table as well!

    It does not seem that I could group the dates differently in both pivot tables. I reattached the file

    Pivot Group by Date Year Quarter Event DNR-1.xlsm

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Create financial report by quarter and month

    Hi,

    Create a separate DNR of your exact same data for each Pivot Table view you want. Then when you change the grouping it won't affect all Pivots. See the attached where I've created DNRData2 which is exactly the same as DNRData. Base the second Pivot on this range and it does what you want.

  12. #12
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Create financial report by quarter and month

    Thanks MarvinP a lot for your help!

+ 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. [SOLVED] How to create a rolling N-Month History Report via Pivot Table
    By DaveDeV in forum Tips and Tutorials
    Replies: 4
    Last Post: 05-18-2013, 03:08 AM
  2. Create report to show totals for vendors per month
    By skudera in forum Excel General
    Replies: 5
    Last Post: 12-15-2009, 02:28 PM
  3. Replies: 3
    Last Post: 05-27-2009, 05:37 AM
  4. identifying financial quarter from date
    By don in forum Excel General
    Replies: 2
    Last Post: 02-03-2006, 07:00 PM
  5. Financial Quarter from dd/mm/yyyy
    By pablo bellissimo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2005, 06:05 AM

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