+ Reply to Thread
Results 1 to 4 of 4

Adding Cell values across sheets to current

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    Phillipsburg, NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Adding Cell values across sheets to current

    I am trying to create a running "month to date" value for certain data. The data for each day is in a different sheet, in the same format

    So, let's say in cell A3 I have "number of apples sold" and I have Sheet1 for the 1st of the month, Sheet 2 for the 2nd, etc

    If I wanted the total number of apples sold, I could put:

    =SUM('Sheet1:Sheet30'!A3)

    But what if I wanted a "running tab" for Month to Date? I would need something like "Sum of all A3 values from (Sheet1) to (currentsheet). Is there any way I can do this?

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Adding Cell values across sheets to current

    You can certainly do

    =Sheet1!$A$1+Sheet2!$A$1+Sheet3!$A$1 or =SUMPRODUCT(Sheet1!A1)+(Sheet2!A1)+(Sheet3!A1)

    but sum requires the values to be in the same range.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    02-10-2011
    Location
    Phillipsburg, NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Adding Cell values across sheets to current

    That is not exactly what I am looking for. I want to paste a formula into every worksheet so that it will total a cell (say A3) from every sheet starting from Sheet1 and going up to the current sheet.
    So on Sheet4 it would be =SUM('Sheet1:Sheet4'!A3) and on Sheet13 it would be =SUM('Sheet1:Sheet13'!A3).
    I am asking if there is a way to put a 'variable' sheet number so I could have the current sheet instead of typing that Sheet number into every page. Thank you for your reply though.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Adding Cell values across sheets to current

    Unfortunatley the only "shorthand" for entering the 3D aggregation is to use * and that will include all sheets except current, eg:

    =SUM('*'!A1)

    will translate on entry - but will not give you what you want.

    Moreover you can not create 3D references with the likes of INDIRECT - you would need a Volatile SUMPRODUCT and a physical listing of the relevant sheets for inclusion.

    Given the above... if:

    a) the "SUM" cell is the same on each sheet

    b) consistent incrementing sheet naming convention

    it might make more sense (for sake of simplicity) to reference the prior sheet aggregation cell to which you would add the current value.

    You can use CELL function (etc) to determine the appropriate sheet reference for prior sheet aggregate meaning you can copy the formula to all sheets
    (you will want an error handler for the aggregate if you opt to use the same formula on sheet1 of course)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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