Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default 3D summing a named range.

I have a workbook with 7 sheets. sheet 1 is a summary and sheet 2 to sheet 6
are detail. The detail sheets have 6 sections in seven columns. Each section
is summed.At the moment I use a formula like this, =sum(first:lastD5) which
works. However if a row is added in any of the detail sheets the summary
sheet is incorrect. Can I use a 3D system with range names? Or is there a
better way to solve this problem?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default 3D summing a named range.

hi, oscar !

I have a workbook with 7 sheets. sheet 1 is a summary and sheet 2 to sheet 6 are detail.
The detail sheets have 6 sections in seven columns.
Each section is summed.At the moment I use a formula like this, =sum(first:lastD5) which works.
However if a row is added in any of the detail sheets the summary sheet is incorrect.
Can I use a 3D system with range names? Or is there a better way to solve this problem?


if you don't mind using indirect, a couple of functions, and "build" an array with sheets-names
aahhh, and create/define names for each cell on every sheet, say "myCell"
(don't forget add the sheet-name while defining the (same) name in the other sheets, i.e. SecondSheet!myCell)

=sumproduct(sumif(indirect({"first";"second";"last "}&"!mycell"),"0"))

build the complete set of sheet-names within the constant array
of write the sheet names in a range and refer to them

you will be able to add/delete rows w/out change the reference to "the named-cells"

hth,
hector.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default 3D summing a named range.



"Héctor Miguel" wrote:

hi, oscar !

I have a workbook with 7 sheets. sheet 1 is a summary and sheet 2 to sheet 6 are detail.
The detail sheets have 6 sections in seven columns.
Each section is summed.At the moment I use a formula like this, =sum(first:lastD5) which works.
However if a row is added in any of the detail sheets the summary sheet is incorrect.
Can I use a 3D system with range names? Or is there a better way to solve this problem?


if you don't mind using indirect, a couple of functions, and "build" an array with sheets-names
aahhh, and create/define names for each cell on every sheet, say "myCell"
(don't forget add the sheet-name while defining the (same) name in the other sheets, i.e. SecondSheet!myCell)

=sumproduct(sumif(indirect({"first";"second";"last "}&"!mycell"),"0"))

build the complete set of sheet-names within the constant array
of write the sheet names in a range and refer to them

you will be able to add/delete rows w/out change the reference to "the named-cells"

hth,
hector.


Hi hector


Many thanks for the advice and formula. I will let you know how it works out.

Regards
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
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
automatic range - named range give me circular reference... George Thorogood Excel Discussion (Misc queries) 0 February 22nd 07 07:53 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM


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

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

About Us

"It's about Microsoft Excel"