+ Reply to Thread
Results 1 to 2 of 2

Running Monthly Totals on Multiple Sheets

  1. #1
    Registered User
    Join Date
    08-24-2007
    Posts
    5

    Running Monthly Totals on Multiple Sheets

    Hey everyone,

    I'm creating a monthly report for my company. I have a maximum of five weeks in this reporting period. Each week is a separate sheet, with a sixth sheet crunching all of the numbers and putting the weekly results into a monthly format.

    Some of these numbers are percentages. I've tried doing a simple SUM function, but that simply added up all of the percentages (predictably) into a large sum, instead of giving me the true percentage. Next I tried taking all of the information in sheets 1-5 added it up, and then divided it by 5 (for 5 weeks). Here is the formula I used:

    =SUM(Week1:Week5!Q9)/5))

    It worked beautifully, but then I realized that some months will only have four weeks. So I did this:

    =IF(Week5!Q9="",(SUM(Week1:Week4!Q9)/4),(SUM(Week1:Week5!Q9)/5))

    Finally, it dawned on me that my superiors are going to want to know progress reports in the middle of the month. Does anybody know anything that could do this for me? Remember, I'm using percentages. Isn't there a multiple if statement like X, Y, Z = "", then [DO NOT ADD] X,Y,Z?

    Thanks in advance,

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075
    Quote Originally Posted by Dragunov
    Hey everyone,

    I'm creating a monthly report for my company. I have a maximum of five weeks in this reporting period. Each week is a separate sheet, with a sixth sheet crunching all of the numbers and putting the weekly results into a monthly format.

    Some of these numbers are percentages. I've tried doing a simple SUM function, but that simply added up all of the percentages (predictably) into a large sum, instead of giving me the true percentage. Next I tried taking all of the information in sheets 1-5 added it up, and then divided it by 5 (for 5 weeks). Here is the formula I used:

    =SUM(Week1:Week5!Q9)/5))

    It worked beautifully, but then I realized that some months will only have four weeks. So I did this:

    =IF(Week5!Q9="",(SUM(Week1:Week4!Q9)/4),(SUM(Week1:Week5!Q9)/5))

    Finally, it dawned on me that my superiors are going to want to know progress reports in the middle of the month. Does anybody know anything that could do this for me? Remember, I'm using percentages. Isn't there a multiple if statement like X, Y, Z = "", then [DO NOT ADD] X,Y,Z?

    Thanks in advance,
    Try this:

    =SUM(Week1:Week5!Q9)/COUNTA(Week1:Week5!Q9)
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

+ 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