+ Reply to Thread
Results 1 to 13 of 13

Sum Weekly Columns and Delete

  1. #1
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Sum Weekly Columns and Delete

    Example Attached.
    Looking to combine the weekly data into 1 column by Month. This is apart of a larger solution and needs to be a macro.
    Attached Files Attached Files

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

    Re: Sum Weekly Columns and Delete

    Hi hfechno,

    In newer versions of Excel there is a tool called Power Query (Get & Transform in 2016) which can do this problem. A tool inside power query is UNPIVOT which I used on your data to give sheet 2 and the result you wanted using a Pivot Table. Pivot Tables have the ability to group your data by date using day, month, quarter or year. See the attached for my answer. Time to upgrade to a newer version of Excel?

    Unpivot using Power Query then Group Dates in Columns.xls
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Sum Weekly Columns and Delete

    I am currently using Excel 2013.
    Any other suggestions?

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

    Re: Sum Weekly Columns and Delete

    Power Query, which is an Add In to 2010 and 2013 Excel is available for free.

    https://www.microsoft.com/en-us/down...1-e5d9b3373a30

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,428

    Re: Sum Weekly Columns and Delete

    Hftechno - please update your forum profile with your current version of Excel. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Sum Weekly Columns and Delete

    Re Your PM
    If you want it vba.
    Result is slightly different.
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Sum Weekly Columns and Delete

    jindon, thanks so much for the reply and help. Yes this is exactly what I am looking for. Yes there is a calculation mismatch for May and June.
    Perhaps someone can figure why (image attached). This is definitely the direction I am looking to take.
    Attached Images Attached Images

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Sum Weekly Columns and Delete

    You need to tell us how to calculate each month.

  9. #9
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Sum Weekly Columns and Delete

    Sorry for any confusion, I see the need for clarification and have submitted another sheet with random data between 1-5. I have also hidden all of the columns not apart of the issue.
    On Sheet1 you will see all of the weeks broken down in RED. The column headers for the weeks are as such...

    Example: We want to SUM the month of April. We have the following columns: W 04/01/18 - 04/07/18 W 04/08/18 - 04/14/18 W 04/15/18 - 04/21/18 W 04/22/18 - 04/28/18 W 04/29/18 - 05/05/18

    IF "W 04" to start the column THEN SUM the row

    The Column Header for the newly summed data will be "4" as in the fourth month (previously I state the header as APR)

    Everything in RED is deleted and the only data that remains are the gray SUM columns.

    hopefully this helps.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Sum Weekly Columns and Delete

    jindon, after retesting your code. My apologies, everything looks 100% !!!!!!!!!!

    The only adjustment if possible would be:
    The Column Header for the newly summed data will be "4" as in the fourth month (previously I state the header as APR)

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Sum Weekly Columns and Delete

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Sum Weekly Columns and Delete

    Thank you so very much!

  13. #13
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    MS Office 2013
    Posts
    146

    Re: Sum Weekly Columns and Delete

    tried to give you a reputation point... but could not since you got one last week from me.
    but well deserved again!

+ 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. Replies: 5
    Last Post: 10-06-2017, 03:59 PM
  2. Replies: 1
    Last Post: 05-19-2016, 10:28 AM
  3. [SOLVED] Converting daily data into weekly and making the weekly number a cumulative return
    By Duchess1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-28-2015, 10:23 AM
  4. Replies: 1
    Last Post: 12-31-2013, 11:51 AM
  5. continuosly average the last 7 columns add data weekly
    By jriley60 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2011, 04:02 AM
  6. Replies: 2
    Last Post: 07-14-2010, 02:14 PM
  7. [SOLVED] Sum weekly columns to a monthly total with criteria.
    By razz0807 in forum Excel General
    Replies: 2
    Last Post: 05-14-2010, 10:24 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