Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Using the INDIRECT function across multiple worksheets

I am trying to use the INDIRECT function across multiple worksheets in
the same workbook and getting an #REF! error.

My intention is to aggregate rows in multiple sheets with an index
variable (total of 12 cells in the rows with a value of 1 to 12 in
cell $A$2 determining how many cells in the rows are aggregated).

My original attempt which resulted in an error was as follow:

=-SUM(sheet1:sheet4!$E$11:INDEX(sheet1:sheet4!$E$13: $P$13,$A$2))


My second attempt (also resulted in an error) was to build the formula
using the INDIRECT function

=SUM(INDIRECT("'sheet1:sheet4'!$E
$13:"&MID(CELL("address",INDEX('sheet1'!$E$13:$P$1 3,$A
$2)),FIND("!",CELL("address",INDEX('sheet1'!$E$13: $P$13,$A$2)))
+1,200)))

It appears that the INDIRECT function does not work when evaluating
ranges that cover multiple worksheets.

=SUM(INDIRECT("sheet1!G27:I27")) works OK


=SUM(INDIRECT("sheet1:sheet4!G27:I27")) produces #REF! error.


Is there a way around this error or can anyone propose a better
solution to my problem?


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
If Function for merging multiple worksheets Brandy Excel Discussion (Misc queries) 2 January 15th 09 04:50 AM
HLookup indirect multiple worksheets Kelly Excel Worksheet Functions 5 May 26th 07 02:07 AM
Sum Indirect function through multiple sheets Andre Croteau Excel Discussion (Misc queries) 2 May 6th 05 10:44 AM
indirect function in different worksheets, losing my hair! Alexander Banz Excel Discussion (Misc queries) 2 February 16th 05 03:59 PM
Offset, indirect, match function limitation on linked worksheets. NewAlgier Excel Worksheet Functions 1 December 6th 04 11:55 PM


All times are GMT +1. The time now is 03:45 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"