Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Finding First and Last Worksheet Names

I currently have a workbook of around 25 worksheets, with 1 summary
worksheet. The 25 worksheets are of identical format but have
different names (sorted alphabetically).

On the summary page I have used functions such as SUM(BBB:YYY!$B$1) to
get total values. However I am currently adding 3-4 extra worksheets a
month and I would like these to be automatically calculated in the
formula (i.e. if I add sheet AAA or ZZZ, I will have to manually adjust
the formula).

Is there a formula that shows the name of the first and last worksheets
so that I can add an INDIRECT command to my formula and have it
automatically update whenever I add a sheet? Or is there another way
of approaching this? Ideally I'd like to avoid using a macro as this
will be sent out to dozens of people, many of whom probably have their
security settings on high.

Thanks,
BH

  #2   Report Post  
 
Posts: n/a
Default

Hi
You could put a sheet at the end of your book, called Last (or something)
and use
=SUM(BBB:Last!$B$1)
You can also hide the Last sheet, if you like, so it doesn't confuse your
users.

--
Andy.


wrote in message
ups.com...
I currently have a workbook of around 25 worksheets, with 1 summary
worksheet. The 25 worksheets are of identical format but have
different names (sorted alphabetically).

On the summary page I have used functions such as SUM(BBB:YYY!$B$1) to
get total values. However I am currently adding 3-4 extra worksheets a
month and I would like these to be automatically calculated in the
formula (i.e. if I add sheet AAA or ZZZ, I will have to manually adjust
the formula).

Is there a formula that shows the name of the first and last worksheets
so that I can add an INDIRECT command to my formula and have it
automatically update whenever I add a sheet? Or is there another way
of approaching this? Ideally I'd like to avoid using a macro as this
will be sent out to dozens of people, many of whom probably have their
security settings on high.

Thanks,
BH



  #3   Report Post  
Peter Rooney
 
Posts: n/a
Default

Why don't you add dummy empty worksheets at the beginning and between the
last sheet to be summarised and the summary sheet of your workbook, and
reference these in your SUM formulae. As long as you don't add new worksheets
before the first dummy or after the last one, you should be fine.

Not the neatest, but, if you don't want code, it should work, providing your
users are told not to add new sheets before the first dummy or after the last
one.

Have a good weekend

Pete



" wrote:

I currently have a workbook of around 25 worksheets, with 1 summary
worksheet. The 25 worksheets are of identical format but have
different names (sorted alphabetically).

On the summary page I have used functions such as SUM(BBB:YYY!$B$1) to
get total values. However I am currently adding 3-4 extra worksheets a
month and I would like these to be automatically calculated in the
formula (i.e. if I add sheet AAA or ZZZ, I will have to manually adjust
the formula).

Is there a formula that shows the name of the first and last worksheets
so that I can add an INDIRECT command to my formula and have it
automatically update whenever I add a sheet? Or is there another way
of approaching this? Ideally I'd like to avoid using a macro as this
will be sent out to dozens of people, many of whom probably have their
security settings on high.

Thanks,
BH


  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

The trick is to insert 2 dummy sheets, one in the beginning and one at the
end. Name them "beg" and "end" and hide both sheets. Now use:

=SUM(beg:end!$B$1)

Any sheets you insert, regardless of name and location, will be included in
the formula.

HTH
Jason
Atlanta, GA


" wrote:

I currently have a workbook of around 25 worksheets, with 1 summary
worksheet. The 25 worksheets are of identical format but have
different names (sorted alphabetically).

On the summary page I have used functions such as SUM(BBB:YYY!$B$1) to
get total values. However I am currently adding 3-4 extra worksheets a
month and I would like these to be automatically calculated in the
formula (i.e. if I add sheet AAA or ZZZ, I will have to manually adjust
the formula).

Is there a formula that shows the name of the first and last worksheets
so that I can add an INDIRECT command to my formula and have it
automatically update whenever I add a sheet? Or is there another way
of approaching this? Ideally I'd like to avoid using a macro as this
will be sent out to dozens of people, many of whom probably have their
security settings on high.

Thanks,
BH


  #5   Report Post  
Peter Rooney
 
Posts: n/a
Default

I thought about hiding them, but if you do, there's still always the chance
that you'll insert a new sheet between your summary sheet and your end dummy.
Better to leave them visible and tell people not to add sheets before/after
the first/last one.

Pete

" wrote:

I currently have a workbook of around 25 worksheets, with 1 summary
worksheet. The 25 worksheets are of identical format but have
different names (sorted alphabetically).

On the summary page I have used functions such as SUM(BBB:YYY!$B$1) to
get total values. However I am currently adding 3-4 extra worksheets a
month and I would like these to be automatically calculated in the
formula (i.e. if I add sheet AAA or ZZZ, I will have to manually adjust
the formula).

Is there a formula that shows the name of the first and last worksheets
so that I can add an INDIRECT command to my formula and have it
automatically update whenever I add a sheet? Or is there another way
of approaching this? Ideally I'd like to avoid using a macro as this
will be sent out to dozens of people, many of whom probably have their
security settings on high.

Thanks,
BH


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"