Copying function between 2 worksheets -- horizontal to vertical

scoobydude

New Member
Joined
Mar 23, 2011
Messages
3
I am trying to copy the cells from one worksheet to another. For instance, the worksheet I am copying from has the cells listed horizontally: D22, E22, F22, G22, etc. I am trying to get those values copied to the other worksheet listed vertically: A4, A5, A6, A7.

What I would like to do is create a formula to copy the values in D22 into A4, D23 into A5, D24 into A6, etc. How do I do this?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I am trying to copy the cells from one worksheet to another. For instance, the worksheet I am copying from has the cells listed horizontally: D22, E22, F22, G22, etc. I am trying to get those values copied to the other worksheet listed vertically: A4, A5, A6, A7.

What I would like to do is create a formula to copy the values in D22 into A4, D23 into A5, D24 into A6, etc. How do I do this?
The second paragraph of your post seems to contradict the first paragraph.

Assuming you want D22 in A4, E22 in A5, F22 in A6 and so on, take a look at the TRANSPOSE function in Excel's Help.
 
Upvote 0
you can use this simple formula in in cell A4 and drag it down to as many cells as needed.

=INDEX($D$22:$G$22,,ROW(A1))

remember to reference the sheet names as well if they are on different sheets.
 
Upvote 0
The second paragraph of your post seems to contradict the first paragraph.

Assuming you want D22 in A4, E22 in A5, F22 in A6 and so on, take a look at the TRANSPOSE function in Excel's Help.

yea, sorry about that. It would be in Row 22 only.
 
Upvote 0
I am trying to copy the cells from one worksheet to another. For instance, the worksheet I am copying from has the cells listed horizontally: D22, E22, F22, G22, etc. I am trying to get those values copied to the other worksheet listed vertically: A4, A5, A6, A7.

What I would like to do is create a formula to copy the values in D22 into A4, D23 into A5, D24 into A6, etc. How do I do this?
Try this...

Entered in A4 and copied down as needed:

=INDEX(Sheet2!D$22:H$22,ROWS(A$4:A4))

Adjust for the correct end of range H$22.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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