#1   Report Post  
PACable
 
Posts: n/a
Default shorten formula

I have to add onto this formula which is all ready too long
I need to get the sum of 70 worksheets

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default shorten formula

Put the sheet names in an array C1:C70

=SUMPRODUCT(N(INDIRECT("'"&C1:C70&"'!A1")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"PACable" wrote in message
...
I have to add onto this formula which is all ready too long
I need to get the sum of 70 worksheets



  #3   Report Post  
RagDyer
 
Posts: n/a
Default shorten formula

Considering that Bob answered for the worst case scenario, where you have
custom named all your sheets, here's for the best case scenario, where you
have all default (Sheet1, Sheet2, ...etc.) sheet names:

=SUM(SHEET1:SHEET70!A1)

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Bob Phillips" wrote in message
...
Put the sheet names in an array C1:C70

=SUMPRODUCT(N(INDIRECT("'"&C1:C70&"'!A1")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"PACable" wrote in message
...
I have to add onto this formula which is all ready too long
I need to get the sum of 70 worksheets




  #4   Report Post  
Roger Govier
 
Posts: n/a
Default shorten formula

Hi
And as a third alternative, create 2 dummy extra sheets called First and Last.
Drag these to positions before your first real sheet and after your last
real sheet and use
=SUM(First:Last!A1)
Of course, the sheet with the formula must be outside of the "sandwich"
created by First and Last.

Regards

Roger Govier


RagDyer wrote:
Considering that Bob answered for the worst case scenario, where you have
custom named all your sheets, here's for the best case scenario, where you
have all default (Sheet1, Sheet2, ...etc.) sheet names:

=SUM(SHEET1:SHEET70!A1)

  #5   Report Post  
Harlan Grove
 
Posts: n/a
Default shorten formula

Roger Govier wrote...
....
=SUM(First:Last!A1)
Of course, the sheet with the formula must be outside of the "sandwich"
created by First and Last.

....

No it doesn't. The only restriction on this particular formula is that
it can't be in cell A1 in any of the worksheets between First and Last,
inclusive, without causing circular recalc. It'd work just fine entered
into any other cell.



  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default shorten formula

Perhaps Roger should just have said that it should be outside of the
"sandwich". It may be asking for trouble if it were inside should someone
put a value in cell A1 at some later time.

Bob

"Harlan Grove" wrote in message
ups.com...
Roger Govier wrote...
...
=SUM(First:Last!A1)
Of course, the sheet with the formula must be outside of the "sandwich"
created by First and Last.

...

No it doesn't. The only restriction on this particular formula is that
it can't be in cell A1 in any of the worksheets between First and Last,
inclusive, without causing circular recalc. It'd work just fine entered
into any other cell.



  #7   Report Post  
Roger Govier
 
Posts: n/a
Default shorten formula

True, Harlan, but as a generality I think it wiser to suggest that users
keep the sheet with the summation formula(e) outside the "sandwich" to avoid
any chance of circular referencing.
Hopefully it avoids the re-posts with " it doesn't work...."

Regards

Roger Govier


Harlan Grove wrote:
Roger Govier wrote...
....

=SUM(First:Last!A1)
Of course, the sheet with the formula must be outside of the "sandwich"
created by First and Last.


....

No it doesn't. The only restriction on this particular formula is that
it can't be in cell A1 in any of the worksheets between First and Last,
inclusive, without causing circular recalc. It'd work just fine entered
into any other cell.

  #8   Report Post  
Harlan Grove
 
Posts: n/a
Default shorten formula

Roger Govier wrote...
True, Harlan, but as a generality I think it wiser to suggest that users
keep the sheet with the summation formula(e) outside the "sandwich" to avoid
any chance of circular referencing.
Hopefully it avoids the re-posts with " it doesn't work...."

....

There's a difference between 'must be' and 'should be'. If you mean
'should', use 'should'.

  #9   Report Post  
Roger Govier
 
Posts: n/a
Default shorten formula

Ouch!!!!!<vbg
ISC

Regards

Roger Govier


Harlan Grove wrote:
Roger Govier wrote...

True, Harlan, but as a generality I think it wiser to suggest that users
keep the sheet with the summation formula(e) outside the "sandwich" to avoid
any chance of circular referencing.
Hopefully it avoids the re-posts with " it doesn't work...."


....

There's a difference between 'must be' and 'should be'. If you mean
'should', use 'should'.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
dragging a formula P Bates Excel Discussion (Misc queries) 3 August 7th 05 09:37 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Shorten sumproduct formula Andre Croteau Excel Discussion (Misc queries) 1 December 11th 04 10:30 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 07:07 AM.

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"