help linking to data and filling down or across (transpose)

roger

New Member
Joined
Feb 25, 2002
Messages
6
I have data that is arranged across...columns (A,B,C,D, etc.). I would like to link to this data and automatically fill down rows in another sheet (1,2.3.4, etc.). Is there an automated way to do this while retaining the links? I know I can just copy and then paste transposed, but this will not retain the links.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Re: help linking to data and filling down or across (transpo

Use the offset function.

If you data is in row 1 i.e. A1, B1, C1 etc and you want to enter this in E1 to E3 enter this formula into E1 and copy down;

Code:
=OFFSET($A$1,0,ROW()-1,1,1)


If you want to enter it into E10 you will need to amend the row()-1 part to;

Code:
=OFFSET($A$1,0,ROW()-10,1,1)
 
Upvote 0
Re: help linking to data and filling down or across (transpo

Also, with non-volatile INDEX, robust against inserting rows before the first formula cell:
Book5
ABCD
1567
2
35
46
57
6 
7 
Sheet1


The formula in A3 is:

=IF(ROW()-ROW($A$3)+1<=COUNT($A$1:$C$1),INDEX($A$1:$C$1,ROW()-ROW($A$3)+1),"")

where A3 in the ROW($A$3) bit is the adaptable start cell.
 
Upvote 0
Re: help linking to data and filling down or across (transpo

What formula will do the opposite of this? I have text going down and I want to "transpose" it by dragging a formula across a row?

Thanks
 
Upvote 0
Re: help linking to data and filling down or across (transpo

Captain Smith said:
What formula will do the opposite of this? I have text going down and I want to "transpose" it by dragging a formula across a row?

Thanks
Book4
ABCDE
1fraxzagdavxa
2fra
3xza
4gda
5vxa
6
Sheet1


The formula in B1, which is copied across, is:

=IF(COLUMN()-COLUMN($B$2)+1<=MATCH(REPT("z",255),$A$2:$A$5),INDEX($A$2:$A$5,COLUMN()-COLUMN($B$2)+1),"")
 
Upvote 0

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top