+ Reply to Thread
Results 1 to 5 of 5

Best way to summarize into month

  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    Cincinnati
    MS-Off Ver
    Excel 2007
    Posts
    96

    Best way to summarize into month

    I have worksheets with sales by day in format mm/dd/yy.

    I have a need to take 1,000's of these dates and pivot table into monthly sales totals.

    If A1 is date, my B1 cell formula to do this is this:
    Please Login or Register  to view this content.
    . I then format as mmm-yy. This basically turns all dates to first day of the month.

    Can you think of a smoother formula that does this?

    Thanks much.
    Last edited by bluerog; 02-22-2011 at 05:40 PM.

  2. #2
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Best way to summarize into month

    Quote Originally Posted by bluerog View Post
    I have worksheets with sales by day in format mm/dd/yy.

    I have a need to take 1,000's of these dates and pivot table into monthly sales totals.

    If A1 is date, my B1 cell formula to do this is this: =(MONTH(A1)&"/01/"&YEAR(A1))+0. I then format as mmm-yy. This basically turns all dates to first day of the month.

    Can you think of a smoother formula that does this?

    Thanks much.
    =EOMONTH(A1,-1)+1 will turn the date to the 1 of whatever month is in A1. do you need to incorporate the year also?
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

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

    Re: Best way to summarize into month

    Hi bluerog,

    I just built a table for another question. You don't need to do any formulas with the pivot tables. Look at the table on the attached as an example. You simply click the correct month in the pivot date dropdown and the month is filtered correctly.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    08-18-2009
    Location
    Cincinnati
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Best way to summarize into month

    Perfect Scottylady. Thanks much. I knew there was a simplier way.

    And for year, I just use:
    Please Login or Register  to view this content.
    and it does the trick.

    For Quarter, I pivot table my Months, the vlookup the month (B2) to find the Q2-2007, Q3-2007 or Q4-2011, etc.... Any of you geniuses have a good way to group dates into quarters?

  5. #5
    Registered User
    Join Date
    08-18-2009
    Location
    Cincinnati
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Best way to summarize into month

    I have used filters in pivot tables. This is a great eg Marvin. (One I never even thought of). As you'll see right below your solution, the only other reason for adding a column with months is to work off that to come up with "Qtr-Year" sales summary.

+ 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