Sum worksheets - w/o updating formula for new worksheets which are

E

Elgee

Hi -
I know how to sum fields of various worksheets. However, can I set the
formula so that if a new worksheet is added, the formula will automatically
update to include the new worksheet? (Data in the same cell as other
worksheets.)

Thank you!!
 
G

Gary''s Student

Include two dummy sheets in our workbook, say alpha and omega. Make alpha
the first and omega the last. Sum from alpha thru omega. When you add a new
worksheet, just add it AFTER alpha.

This will insure that the new worksheet is between alpha and omega and will
be included in the sum
 
P

Pete_UK

If you have a blank worksheet named "first" and one named "last" and
position these so that they encompass the sheets you want to sum from
like a sandwich, they you can have a formula like:

=SUM(first:last!A1)

This will add all the A1 cells between and including those sheets. You
can move sheets into and out of the "sandwich" to model the effects of
these changes, and the formula remains the same.

Hope this helps.

Pete
 
E

Elgee

MOST EXCELLENT!

Thank you!

Pete_UK said:
If you have a blank worksheet named "first" and one named "last" and
position these so that they encompass the sheets you want to sum from
like a sandwich, they you can have a formula like:

=SUM(first:last!A1)

This will add all the A1 cells between and including those sheets. You
can move sheets into and out of the "sandwich" to model the effects of
these changes, and the formula remains the same.

Hope this helps.

Pete
 
E

Elgee

FANTASTIC! Thank you!

Gary''s Student said:
Include two dummy sheets in our workbook, say alpha and omega. Make alpha
the first and omega the last. Sum from alpha thru omega. When you add a new
worksheet, just add it AFTER alpha.

This will insure that the new worksheet is between alpha and omega and will
be included in the sum
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top