[mso] Syntax Problem with SUM and INDIRECT functions
- From: larryspcremedies@xxxxxxx
- To: mso@xxxxxxxxxxxxx
- Date: Mon, 13 Jul 2009 14:32:58 -0400
I am developing a worksheet that will have a number of data spreadsheets and a
summary spreadsheet.
In the summary spreadsheet, I have a cells with the SUM function.
e.g. =SUM('Datasheet 1:Datasheet 5'!G40:G60)
Now this works fine if I have a fixed number of data spreadsheets.
However, I would like to be able to insert new data spreadsheets at the end,
and automatically include them in the SUM functions in the summary spreadsheet
by maintaining a cell in another spreadsheet containing the number of data
spreadsheets. I've named this last spreadsheet "Worktable"
Lets say I have five?data spreadsheets named with the prefix "Datasheet " and
suffixed with a sequential number starting with 1 and ending in 5 (they are in
order in the worksheet following the Summary and Worktable worksheets.
In the Summary sheet I have coded a cell with
=SUM('Datasheet 1:INDIRECT("Datasheet " & 'Worktable'!$A$2)'!G40:G60)
This results in a syntax error.
I've tried a whole host of iterations to come up with the proper syntax (too
many to list here), all of them results in no joy in Mudville.
Can I do what I want to do?
Any help or advice would be appreciated.
Larry
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister group.
This group will not allow for posting of emails, but will allow you to join
and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
Other related posts: