indirect formula help

I

ivory_kitten

i need to use a formula in which the variable part is the worksheet name, i'm
trying to use INDIRECT($A$1 & "!A2"), where the value of $A$1 is the
worksheet name, but when i copy my formula to the other cells, the A2 part
does not update

how do i make it automatically update to the current cell reference?
 
I

ivory_kitten

Thanks, I was stuck with how to get the column part to show up as a letter!

So I've used =INDIRECT($A$1 & "!" & CHAR(COLUMN()+64) & ROW()

Thanks so much for your help!
 
B

Biff

You're welcome. Thanks for the feedback!

Biff

ivory_kitten said:
Thanks, I was stuck with how to get the column part to show up as a
letter!

So I've used =INDIRECT($A$1 & "!" & CHAR(COLUMN()+64) & ROW()

Thanks so much for your help!
 
R

Roger Govier

Hi Biff

Just a small point.
Whilst this may well work for the OP's desired range, the formula will
fail once you go past column Z.

An alternative might be
=OFFSET(INDIRECT($A$1 & "!$A$1"),ROW(1:1),COLUMN()-1)
 
B

Biff

the formula will fail once you go past column Z.

Yes, I know. I would have dealt with it if needed.

Biff
 
I

ivory_kitten

Ok, so I have used this to import my data, however depending on the A$1 some
of my tables are smaller than others which is making my lookup functions not
return properly! How can I stop this?
 
B

Biff

How about providing an explanation of what you're trying to do. What lookup
functions? What lookup tables? Where are the tables? Where is the lookup
value?

Biff
 
I

ivory_kitten

Hi Biff,

Thanks for your help, I figured this one out already, i have to use offset
instead of index :)
 
Top