M
Matthew White
Hi,
I am trying to use INDIRECT to calculate a sheet name. I can do it
separatly, like this:
=INDIRECT((E5-1)&"!E5")
This returns, for example, 2 (which is a valid sheet name).
If I try to incorporate this into an OFFSET function, I have trouble. Here
is the OFFSET before I mess with it:
=OFFSET('2'!R$12,MATCH(LARGE('2'!AW$12:AW$91,ROW()-ROW(Q$12)+1),'2'!AW$12:AW
$91,0)-1,0)
I want to use the INDIRECT idea to replace the '2'! part of this function.
I've tried this:
=OFFSET(('&INDIRECT((E5-1)&"!E5")&'!R$12),MATCH(LARGE('2'!AW$12:AW$91,ROW()-
ROW(Q$12)+1),'2'!AW$12:AW$91,0)-1,0)
So far no luck. All I get is a "#Value" error.
Any ideas?
Thanks,
Matt
I am trying to use INDIRECT to calculate a sheet name. I can do it
separatly, like this:
=INDIRECT((E5-1)&"!E5")
This returns, for example, 2 (which is a valid sheet name).
If I try to incorporate this into an OFFSET function, I have trouble. Here
is the OFFSET before I mess with it:
=OFFSET('2'!R$12,MATCH(LARGE('2'!AW$12:AW$91,ROW()-ROW(Q$12)+1),'2'!AW$12:AW
$91,0)-1,0)
I want to use the INDIRECT idea to replace the '2'! part of this function.
I've tried this:
=OFFSET(('&INDIRECT((E5-1)&"!E5")&'!R$12),MATCH(LARGE('2'!AW$12:AW$91,ROW()-
ROW(Q$12)+1),'2'!AW$12:AW$91,0)-1,0)
So far no luck. All I get is a "#Value" error.
Any ideas?
Thanks,
Matt