Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Evad
 
Posts: n/a
Default column to row in formula

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

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

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

--

HTH

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


"Evad" wrote in message
...
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



  #3   Report Post  
Dave R.
 
Posts: n/a
Default

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).



"Evad" wrote in message
...
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



  #4   Report Post  
 
Posts: n/a
Default

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
what formula do i put for column m = column k minus column l in e. jenniss Excel Discussion (Misc queries) 5 January 6th 05 08:18 PM
I need a formula that will sum the top 3 number in a column havocdragon Excel Worksheet Functions 5 December 15th 04 10:03 PM
how to enter a formula using column() function for a range Mike Peter Excel Worksheet Functions 6 December 8th 04 07:11 AM
Formula to reference column heading JimDandy Excel Worksheet Functions 1 November 17th 04 04:06 PM


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"