Horizontal to Vertical

johnny52

Active Member
Joined
Oct 13, 2006
Messages
323
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)
 

Some videos you may like

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

hnsd24_CN

Board Regular
Joined
Oct 13, 2020
Messages
78
Office Version
  1. 2016
Platform
  1. Windows

johnny52

Active Member
Joined
Oct 13, 2006
Messages
323
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
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),"")
 

johnny52

Active Member
Joined
Oct 13, 2006
Messages
323
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
=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
 

Watch MrExcel Video

Forum statistics

Threads
1,126,931
Messages
5,621,663
Members
415,849
Latest member
PhoenixRising2015

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
Top