+ Reply to Thread
Results 1 to 4 of 4

Auto sum/grouping by row based on month

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    57

    Auto sum/grouping by row based on month

    I have data that auto populates from another sheet, it puts data into rows:

    Actual
    Planned
    Forecast
    Earned

    I need to auto-sum my data for each row by month. So for example anything in the Actual row, where the date is between 2012/12/01 and 2012/12/31 should be summed together.

    Pivot tables don't work since they only work on column arranged data and need to be rebuilt when the data changes.

    Any ideas?

    Sample sheet attached
    Attached Files Attached Files
    Last edited by witchcraftz; 02-21-2013 at 08:15 PM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Auto sum/grouping by row based on month

    try something like this

    =SUMPRODUCT(--(MONTH(B1:Z1)=12),IF(ISNA(B2:Z2),0,B2:Z2)) -array formula (ctrl+shift+enter) not just enter

    the bold =12 means month 12
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Auto sum/grouping by row based on month

    In the attached workbook I've put the start date and end date in B9 and C9. Then in B12 I have this formula:

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


    which can then be copied down. Change B9 and/or C9 for a different day range.

    Hope this helps.

    Pete
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Auto sum/grouping by row based on month

    These have both provided me some more ideas however I am still not yet at a solution.

    The biggest issues are:
    1- the start and end dates may change
    2- there will be multiple months that are the same, I can't simply drag it across to populate

+ 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