Change address from vertical to horizontal

bigburgo

New Member
Joined
Mar 27, 2011
Messages
12
Hi,

I have a whole heap of address listed vertically in an excel document that I need running horizontally.

For example:

School
1st Address Line
2nd Address Line
555-5555
555-5555
Name
Name
School Type
Website address
School
1st Address Line
2nd Address Line
555-5555
555-5555
Name
Name
School Type
Website address

(I have listed two addresses as you can see their is no gap between the address's)

to:

School / 1st Address Line / 2nd Address Line / 555-5555 / 555-5555 / Name /Name / School Type / Website address
School / 1st Address Line / 2nd Address Line / 555-5555 / 555-5555 / Name /Name / School Type / Website address


Anyone know a marco I can use etc?
Or another other way to do this quickly instead of cutting and pasting a couple of thousand times?

Cheers

Rob.




Changed to
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I named the vertical list range SCHOOLDATA. Type the following formula where you want the horizontal version to start, then copy it across to the next eight columns. It will start displaying empty lines when you reach the end of SCHOOLDATA. Since it uses the IFERROR function, you need at least Excel 2007.

Code:
=IFERROR(INDEX(SCHOOLDATA,COLUMN(A1)+(9*ROW(A1)-9),1),"")

Mike
 
Upvote 0
Thanks Mike,

I am using Excel for Mac 2011.

I however have no idea how to work this

=IFERROR(INDEX(SCHOOLDATA,COLUMN(A1)+(9*ROW(A1)-9),1),"")

I pasted it into where I wanted it to start and to next 8 colums but nothing happened.

NOt sure how to make it work.

Regards,

Rob.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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