+ Reply to Thread
Results 1 to 7 of 7

How to sum every x amount of columns?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    8

    How to sum every x amount of columns?

    Hello,

    I have entered daily visitors and in a spreadsheet, with each cell representing the amount of visitors by day (b3 = 100, c3 = 50, d3 = 20 etc). The date for each day is entered in row 2 (b2, c2, d2, etc...)

    I would like sum this data weekly and monthly in cells and display it on another sheet. When I try using =sum(a3:h3) then I drag it horizontally, the next cell shows (b3:i3) when i want it to show (i3:o3), how can i do this?

    I would also like to show in a different cell, the month to date totals. For example on July 14th, I would like the cell to tell me all of my visitors in July.

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    Makati
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: How to sum every x amount of columns?

    Hello,

    Welcome to forum. Please post your data as an excel sheet and it will be easy to come up with an answer. Include the before sheet and the outcome that you expected.

    To upload attachment, click go advanced --> click paper clip ( attachments) icon.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: How to sum every x amount of columns?

    Pl see the attached file.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-26-2012
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: How to sum every x amount of columns?

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see the attached file.
    Thank you very much, this worked greatly for the weekly total!

    Do you or anybody else know how I can do the same but for monthly and month to date totals? That formula won't work since there are different amount of days in each month.

    I have attached a sample spreadsheet. Row 6 shows the week ending date, I would like to know the month to date totals ending at each weekly date and also have the count reset (row 8) once the new month starts


    I have 2 attachments, can't figure out how to delete one of them... please use sampledata1
    Thanks!!!


    sampledata1.xlsx
    Last edited by underrated209; 07-15-2013 at 12:22 PM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to sum every x amount of columns?

    I should solve this with an pivot table.

    See the attached file.

    I rearanged the data so i can easily use them for a pivot table.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: How to sum every x amount of columns?

    Pl see the file with formula for monthly total.
    Attached Files Attached Files

  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
    53,048

    Re: How to sum every x amount of columns?

    another option for the weekly totals is to use =weeknum() on each day (in a helper row - I used row1), and then use...
    =SUMIF($A$1:$T$1,27,$A$3:$T$3)
    you can reference 27 (the 27th week) instead of hard-coding to make copying across easier
    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

+ 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. How to get data for only a certain amount of columns (specified by an if)
    By oseroser in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2012, 09:08 AM
  2. Replies: 5
    Last Post: 09-30-2010, 08:02 PM
  3. Displaying a text in an X amount of columns
    By loJic in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-15-2009, 06:35 AM
  4. Hiding large amount of columns to right of data
    By raydaw in forum Excel General
    Replies: 3
    Last Post: 10-07-2009, 10:31 AM
  5. [SOLVED] Sum of columns until you a certain amount
    By Andman in forum Excel General
    Replies: 3
    Last Post: 03-26-2005, 11:06 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