Row to Columns

Mjoza

Board Regular
Joined
Aug 31, 2011
Messages
172
How can I make a formula or macro to bring numbers in a column to be in a row?
For example I have data in cell range A1:A5 in tab 1 and I want that data to be displayed in tab 2 in range A1:E1. If its a formula I want to be able to go to tab 2 in cell A1 and drag it over to E1 and have the range in tab 1 column A displayed.

I'm using excel 2007

Thanks!

Mjoza
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to the board...

Try this in Tab 2 A1 and filled right to E1

=INDEX('Tab 1'!$A:$A,COLUMNS($A1:A1))

Don't change the $A1:A1, it has nothing to do with the location of your data

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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