#1   Report Post  
Todd Nelson
 
Posts: n/a
Default #REF error

When using a formula to pull all h24 cells from each worksheet i am getting a
#REF error. This is the formula =INDIRECT("'SHEET"&ROWS($A$2:$A3)&"'!h24").
Is there a better formula? How can I correct this error?? Any help would be
greatly appreciated!!!

  #2   Report Post  
RagDyer
 
Posts: n/a
Default

I don't understand exactly what you're trying to do.

If you have sheets 1 to 10, when you say "pull", do you mean *display each*
sheets content of H24 down a column, one cell per sheet?

=INDIRECT("'SHEET"&ROW(A1)&"'!H24")

And copy down for 10 rows, one for each sheet.

OR
Do you mean total (add) all the H24 cells from each sheet and display it in
a single cell:

=SUM(Sheet1:Sheet10!H24)

--
HTH,

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


"Todd Nelson" wrote in message
...
When using a formula to pull all h24 cells from each worksheet i am

getting a
#REF error. This is the formula

=INDIRECT("'SHEET"&ROWS($A$2:$A3)&"'!h24").
Is there a better formula? How can I correct this error?? Any help would

be
greatly appreciated!!!


  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

This looks for sheet names like: sheet2, sheet3, sheet4, ...

Are those the names of your worksheets?

Todd Nelson wrote:

When using a formula to pull all h24 cells from each worksheet i am getting a
#REF error. This is the formula =INDIRECT("'SHEET"&ROWS($A$2:$A3)&"'!h24").
Is there a better formula? How can I correct this error?? Any help would be
greatly appreciated!!!


--

Dave Peterson
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
Ignore error msgs in formula references gharden Excel Discussion (Misc queries) 4 June 17th 05 12:14 AM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 7 March 7th 05 06:29 PM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 0 February 28th 05 06:26 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM


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