+ Reply to Thread
Results 1 to 5 of 5

automatically calculate my WEEKLY and MONTHLY totals on a spreadsheet

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    automatically calculate my WEEKLY and MONTHLY totals on a spreadsheet

    I would like to modify the below code to calculate weekly ad monthly totals. the code currently calculates 2013 total (by year)


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

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: automatically calculate my WEEKLY and MONTHLY totals on a spreadsheet

    Hi..

    Can you attach a sample Workbook..

    Just quickly though..

    Couldn't all this...
    Please Login or Register  to view this content.

    Be replaced by something like..
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: automatically calculate my WEEKLY and MONTHLY totals on a spreadsheet

    Here is the attached sample workbook. I just need the syntax to calculate weekly and monthy. My code works but it's calculating all the worslheets that are hidden and current. Please advise
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: automatically calculate my WEEKLY and MONTHLY totals on a spreadsheet

    No worries.. its 1.00 am here.. so i will look tomorrow.. but please take my advice on repetitive code though (I am guilty as anyone sometimes)..

    Less code = less confusion.... thats the goal anyway...

  5. #5
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: automatically calculate my WEEKLY and MONTHLY totals on a spreadsheet

    A few questions.. as your workbook is a bit confusing..

    The Worksheets that are named for example "20131013" .. are they a weekly sheet where you enter the data for that week?

    Assuming that..
    I can see how you want to get your yearly values (if first 4 characters of sheet name is 2013 as an example..).. so if you want to make it so you can get weekly running totals (for current week) and monthly running totals (for current month).. I would suggest the following:
    Name your sheets like yyyymmww. (yyyy = year, mm = month, ww = current week number).. So this weeks sheet would be 20131042
    That way you will be able to get data from specific sheets depending on those values using the Right function..

    Having said all that.. if it were me.. i would just have 1 Worksheet where you enter all data. Add a Date column where you add the date for each entry.
    Then use autofilter to get the data you need (this weeks, this months, whatever) and Sum the visible rows after Autofilter using SpecialCells(12) to populate your Weekly/Monthly/Yearly running total tables..

    You can use 2 Date pickers to set the Date Criteria for autofilter (this way you can have totally custom periods of reporting).. or just have buttons like (This Week, Last Week, This Month etc etc)

+ 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. Calculate weekly and monthly totals from hidden Worksheets
    By drobinson782001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2013, 10:31 PM
  2. repeat weekly / monthly payments in excel spreadsheet automatically?
    By happydaize in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-08-2013, 11:46 AM
  3. [SOLVED] How do I group daily totals into weekly/monthly/quarterly totals
    By situationroom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2013, 09:58 AM
  4. Calculate Totals weekly and Monthly from daily Figures
    By mfjanoo in forum Excel General
    Replies: 3
    Last Post: 03-05-2012, 03:06 PM
  5. [SOLVED] Summing Weekly Totals into Monthly Totals
    By steph44haf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2006, 11:55 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