+ Reply to Thread
Results 1 to 4 of 4

Formula for gathering data from many sheets, that includes new sheets as they're added?

  1. #1
    Registered User
    Join Date
    07-26-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel for Mac (365 subscription) Version 16.51
    Posts
    24

    Formula for gathering data from many sheets, that includes new sheets as they're added?

    Hi guys,

    So I have a workbook that I'm creating new sales orders in.
    It has a front page that summarises things like total profits etc.

    In the cell for totals profits I currently have this formula which references a range of sheets:

    =SUM('sale#3:sale#1'!P1)

    I don't want to have to update this formula every time I add a new sheet.
    Is there a more general way to reference "all sheets"? Perhaps sheets with a certain prefix in their name (eg: "sale#")?
    So that as I add new sheets with this prefix they are included automatically?

    I hope this makes sense?
    I have attached the workbook so you can see what I mean.
    Attached Files Attached Files
    Last edited by RecordMan; 08-24-2021 at 10:43 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula for gathering data from many sheets, that includes new sheets as they're added

    Quote Originally Posted by RecordMan View Post
    In the cell for totals profits I currently have this formula which references a range of sheets:

    =SUM('sale#3:sale#1'!P1)
    There is nothing like this in the file you attached, and there is only one sheet.



    Using a 3D reference with a range of sheets is based on the order of the sheet tabs. Based on your description I would create a dummy sheet that is always the rightmost tab, and one in the leftmost tab, then in insert new sheets between the dummies. Then your 3D formula should work with no further changes.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-26-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel for Mac (365 subscription) Version 16.51
    Posts
    24

    Re: Formula for gathering data from many sheets, that includes new sheets as they're added

    Hello again Jeff,

    My apologies - I hadn't saved that file when I uploaded it, so lots of things I mentioned were missing - as you noticed.
    (I have uploaded a more complete version now)

    I like your thinking with the "dummy" sheets. Nice idea!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula for gathering data from many sheets, that includes new sheets as they're added

    Thanks for the rep!

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this 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)

Similar Threads

  1. Replies: 3
    Last Post: 11-10-2018, 06:59 AM
  2. Replies: 4
    Last Post: 01-15-2014, 10:26 AM
  3. [SOLVED] VBA gathering sum of data from other sheets
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2014, 02:58 PM
  4. [SOLVED] Gathering Data from Multiple sheets
    By Closet Coder in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-25-2012, 04:09 PM
  5. Data Gathering across multiple sheets
    By dweb83 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-29-2011, 08:00 AM
  6. Excel 2007 : Gathering data across multiple sheets
    By GPalinkas in forum Excel General
    Replies: 1
    Last Post: 05-23-2011, 05:23 PM
  7. Data gathering from multiple sheets
    By chris.leng in forum Excel - New Users/Basics
    Replies: 17
    Last Post: 08-15-2008, 04:43 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