You are here:

Excel/Transposing address lists to excel

Advertisement


Question
Hi Tom,

I thought I might see if you can help me with this one. I have a list of addresses that I copied from a word doc. I pasted them into excel and want to put them in columns.

Example

Currently:

A1 = Name
A2 = Street Address
A3 = City, State ( also want to remove comma and separate into 2 columns
A4 = Tel #
A5 = Blank
A6 = Name.... and so on

Want to format so that I have:
  Name  Address  City State
A1
A2 Etc

The problem is that I have found formulas that don't work. I want to end up with a complete list of data removing the rows I don't need.

I would appreciate any help.

cheers,

rob.

Answer
Rob Thomas,

So every address is 4 rows followed by one blank row.

in B1 put in

=Indirect("A"&(row()-1)*5+1

in C1 put in
=INDIRECT("A"&(ROW()-1)*5+2)

in D1 put in
=LEFT(INDIRECT("A"&(ROW()-1)*5+3),FIND(",",INDIRECT("A"&(ROW()-1)*5+3))-1)

in E1 put in
=TRIM(MID(INDIRECT("A"&(ROW()-1)*5+3),FIND(",",INDIRECT("A"&(ROW()-1)*5+3))+1,255))

in F1 put in
NDIRECT("A"&(ROW()-1)*5+4)

then select B1:F1 and drag fill down the columns until you run out of data.

--
Regards,
Tom Ogilvy  
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

All Answers

Answers by Expert:


Ask Experts

Volunteer


Tom Ogilvy

Expertise

Worked with the program for many years - provided assistance on MS Excel Newsgroups since 1997. Have received the Microsoft MVP award annually since 1999. I don't answer questions on using Excel in a browser Since I have no way to test this. Prefer not to answer charting questions. I consider myself to be particularly knowledgeable about using VBA internal to Excel but have no problems with formulas and pivot tables either.

Experience

Have Used Excel for 15 - 20 years. Answered in excess of 70,000 Excel related questions in MS Excel newsgroups. Unless obvious, please specify whether you want a worksheet function or macro/VBA solution.

Education/Credentials
BS General Engineering (concentration in Industrial Engineering) MS Operations Research Systems Analysis

©2009 About.com, a part of The New York Times Company. All rights reserved.