View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default INDIRECT for range of sheets

Try this:

=SUMPRODUCT(SUMIF(INDIRECT("'"&C1:C2&"'!D4"),"<") )

Biff

"mr tom" <mr-tom at mr-tom.co.uk.(donotspam) wrote in message
...
I want to sum cell D4 across a range of sheets.

I've got the first and last sheet names:
Hello my name is Gilbert (in cell C1)
I like squirrels (in cell C2

I've therefore put together:
=SUM(INDIRECT("'"&C1&":"&C2&"'!D4"))

The problem is the INDIRECT returns #REF! - I think because it's not a
single sheet reference.

What am I doing wrong?
How else can I do this?

Cheers,