column to row in formula

E

Evad

I am trying to reference the data in a column but use it in a row. ie
I have data in a column 'A' as follows:
w
x
y
z

I want to write a formula in cell A10 as follows:
=$A1 (result = w)
When I copy the formula to cell B10 I want the result to = x (ie $A2)

I know how to copy a complete column and then transpose it but I was
wondering if I could accomplish it in a formula.

Thanks in advance
E
 
B

Bob Phillips

In A10: =INDIRECT("A"&COLUMN())

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
D

Dave R.

Here's another approach

=OFFSET($A$1,COLUMN()-COLUMN($B:$B),0)

where $B is the column where you first enter the formula (and will return
the value in A1).
 
H

hrlngrv

Bob Phillips wrote...
In A10: =INDIRECT("A"&COLUMN())
....

INDIRECT is unambiguously volatile. INDEX doesn't seem to be. If so,
then

=INDEX($A:$A,COLUMN())

would be more efficient since there would presumably be many such
formulas.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top