+ Reply to Thread
Results 1 to 2 of 2

HOW-??accumulating values from same cell in multiple worksheets

  1. #1
    Registered User
    Join Date
    02-26-2008
    Posts
    2

    HOW-??accumulating values from same cell in multiple worksheets

    I am trying to automatically change the name of a worksheet in a formula

    =sum(pay1:pay26!a1)

    I have to manually chang the pay number each pay period from 1 to 2 to 3 etc

    I can create a string in a cell with the right name but cant figure out how to replace the name in the formula

    EG pay2

    Anybody have any ideas-even if I can reference the sheet name tab it owuld work

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by aquarian1000
    I am trying to automatically change the name of a worksheet in a formula

    =sum(pay1:pay26!a1)

    I have to manually chang the pay number each pay period from 1 to 2 to 3 etc

    I can create a string in a cell with the right name but cant figure out how to replace the name in the formula

    EG pay2

    Anybody have any ideas-even if I can reference the sheet name tab it owuld work

    Hi,

    Checkout the INDIRECT() function, which will allow you use the name string in the cell, in the formula. Or alternatively use the following to calculate the sheet name in a cell, and build this cell into the INDIRECT() function

    Please Login or Register  to view this content.
    HTH

    which will return the

+ 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