
Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
Hi Bob, I'm not following you:
- how do I create local worksheet names? The only way I know to define names
is for the entire workbook (inser\name\define)
- do you mean the input for the range should be in the form
sheet1!offset(...)? This does not seem to work.
I added some more details about the situation:
Sheet Test1
column A column D
1 02:30
1 03:30
1 04:30
1 05:30
Cl 06:30
Cl 07:30
Cl 08:30
VP 09:30
VP 10:30
VP 11:30
VP 12:30
VP 13:30
VP 14:30
Sheet Test2
column A column D
1 02:30
1 05:30
Cl 06:30
Cl 07:30
Cl 08:30
Cl 09:30
Cl 10:30
VP 11:30
VP 12:30
VP 13:30
VP 14:30
I use the following formula's to define the ranges
Range1_Test1=OFFSET(Test1!$A$1,MATCH("1*",Test1!$B$1:$B$500,0)-1,4,(MATCH("CL*",Test1!$B$1:$B$500,0)-MATCH("1*",Test1!$B$1:$B$500,0)),1)
Range1_Test2=OFFSET(Test2!$A$1,MATCH("1*",Test2!$B$1:$B$500,0)-1,4,(MATCH("CL*",Test2!$B$1:$B$500,0)-MATCH("1*",Test2!$B$1:$B$500,0)),1)
And for the sumation in each sheet I would like to use something like this
SUM(INDIRECT("Range1_"&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)&"1"))
Thanks for any help!
Hans
> Why not use local worksheet names?
>
[quoted text clipped - 34 lines]
> >
> > Hans
Bob Phillips - 05 Feb 2008 14:04 GMT
Select the appropriate worksheet
Go to menu Insert>Name>Define...
In the Names box insert
this_sheet_name!Range1
and in the RefersTo box insert
=OFFSET(...
Then onto the next sheet and repaet the exercise, and so on.
Then on each sheet you just use
=SUM(Range1)
which you can copy from sheet to sheet.
A bit better than INDIRECTs.

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Hi Bob, I'm not following you:
> - how do I create local worksheet names? The only way I know to define
[quoted text clipped - 92 lines]
>> >
>> > Hans
Hans - 05 Feb 2008 14:14 GMT
sense and simplicity! thx for the help.
Hans
> Select the appropriate worksheet
>
[quoted text clipped - 114 lines]
> >> >
> >> > Hans