Horizontal to Vertical

johnny52

Active Member
Joined
Oct 13, 2006
Messages
332
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
=IFERROR(INDEX(A$1:C$9,CEILING(ROWS(E$1:E1)/3,1)*4-3,MOD(ROWS(E$1:E1)+2,3)+1),"")

This formula covers three columns (a1,b1,c1)converted to appear vertically e1,e2,e3......works great

how would I modify this to cover 4,5,6, columns of data etc (A$1:G$9)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Upvote 0
Hi I wanted column g to read a1 to f1 vertically down

I just want my formula below to extend out a few more columns

=IFERROR(INDEX(A$1:C$9,CEILING(ROWS(E$1:E1)/3,1)*4-3,MOD(ROWS(E$1:E1)+2,3)+1),"")
 
Upvote 0
=INDEX(A:H,ROUNDUP(ROWS($1:1)/8,0),MOD(ROWS($1:1)+7,8)+1)

looked through some of my old posts not realizing I encountered this issue before, and it looks like this will work.

Thanks for the help
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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