Search : in
By :

Change sheet name in formula when copied down

Last answer on Feb 20, 2009 8:35:02 am GMT mblanken, on Feb 19, 2009 6:48:10 pm GMT 
 Report this message to moderators

I have a workbook made that has a 'Quantities' sheet that list any number of quantities along with 'contract quantity', 'current quantity', etc. There are also any number of other sheets which equal the number of items listed on the 'Quantities' sheet. These sheets are the individual items from the 'quantities' sheet, where I can go in and insert an individual quantity which is added up as more quantities in cell D28 and then the cell D28 is transfered to the correct location on the 'Quantities' sheet. I have been looking for a better formula to transfer this data. I originally had the following: ='1'!D28 where '1' means the sheet named '1' and !D28 is the cell i'm referencing in that sheet. But when I copied down the formula I had to individually change the '1' for each item. This takes a considerable amount of time when I get workbooks with 200+ sheets. Then after googling a little I wrote a macro which created a list of the sheet names and then used the following formula in place of '='1'!D28': =INDIRECT(A3&"!d28"). This equation worked fine for copying down the column but there is still another issue I can't figure out to fix. Cell D28 is normally always the cell used for the sum of quantities but occassionally there are enough quantities to enter that more rows must be inserted which changes the cell that the total is calculated in. When this happens the 'INDIRECT' formula does not update with this - it keeps using cell D28. How can I make the formula update?

Sorry for the long post - just wanted to get all my information out there.

Thanks, Mike.

Configuration: Windows XP
Internet Explorer 7.0

Best answers for « Change sheet name in formula when copied down » in :
Connect a database (MDB) to excel Show[VBA] Connecting a database (MDB) to excel Below is a tips of how to connect an Access database (MDB) in an application excel Add reference Microsoft DAO object librairy X.X In a general module (eg Module1) paste the code below...
How to change or recover your Windows Live Messenger password ShowHow to change or recover your Windows Live Messenger password 1.Changing your password (Windows Live Messenger) 2. Password Recovery Secret question Send password reset instructions to your alternative email address Download MSN Messenger...
[Excel]changing cell formula to text Show[Excel]changing cell formula to text Issue Solution Notes Issue Consider that I have: In cell A4, it contains a formula =Sum(A1:B3)+A3/B2. How to extract this formula in cell A6 as a string of text? That is ... I want cell A6...
Download SSH Secure Shell ShowSSH secure shell for workstations is a flexible client SSH allowing to connect in a secured way to remote applications. http://www.commentcamarche.net/faq/images/NHc6wz5jOYBhPXTis.png
UNIX system - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence its name "shell". The shell therefore acts as an intermediary between the operating system and the user using command lines...
Linux - User management ShowFirst step for the administrator When several people have access to a system, the administrator must manage the users. To do so, he must know the common commands and files to be configured. The important files are: the /etc/passwd file the...

1

 lestuce, on Feb 20, 2009 8:35:02 am GMT

Hi,
in the macro you have set d28 as default.
so if you do not change it, it will not change.

Reply to lestuce