+ Reply to Thread
Results 1 to 5 of 5

Thread: automatically add totals

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    7

    automatically add totals

    I have a spreadsheet with two columns. A is a column with a series of dates, only showing weekdays. Column B contains numbers corresponding to the date it is next to in column A. I would Like to add a third column that is for Weekly Totals.

    How can I make it so that when I type in the numbers next to each date, it will automatically add them and create a total for that week (5 weekdays) in column C. Essentially column C would only have a number every 5 rows showing the total.

    Thank you!

  2. #2
    Forum Guru jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2007
    Posts
    2,573

    Re: automatically add totals

    How about something like this example...

    I used column D as a helper column...
    Attached Files Attached Files
    Last edited by jeffreybrown; 02-10-2012 at 06:13 PM.
    HTH
    Regards, Jeff

    If you like the answer(s) provided, why not add some reputation by clicking the * below
    Please use [ Code ] tags when posting [ /Code ]
    Please view/read the Forum rules --- How to mark a thread as solved

  3. #3
    Registered User
    Join Date
    11-23-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: automatically add totals

    Jeff,

    Thank you for your response. I am not good with excel; I don't know how to incorporate what you did into my exisitng workbook. I was hoping there was a macro I could just paste in. Can you please explain what you did.

    THANKS!

  4. #4
    Forum Guru jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2007
    Posts
    2,573

    Re: automatically add totals

    I used the WEEKNUM function in a helper column to return the week number, then used Sumif to Sum up the amount by week number. I'm sure somebody could offer a formula without the need to use a helper column, but sometimes using a helper column is not all that bad.

    If this does not work for you then you should attach a sample workbook with what you have and what you desire. Macro's are fine, but if there is a native worksheet formula then ofter times this is the best and most efficient choice unless you workbook structure does not cooperate.
    HTH
    Regards, Jeff

    If you like the answer(s) provided, why not add some reputation by clicking the * below
    Please use [ Code ] tags when posting [ /Code ]
    Please view/read the Forum rules --- How to mark a thread as solved

  5. #5
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: automatically add totals

    As per Jeff's example, this may help you.
    Attached Files Attached Files
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

+ 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.2.0