close

I have a sheet in this form:
name1
address1
city1
name2
address2
city2

etc. for ~ 5000 names
I would like to move all the names to one column, addresses to the next
column and cities to the 3rd column so ai can sort the data on the names.
How could I do this in an easy manner?

Thank You in advance.
RudyAssuming that your values start in cell A2, use these formulas in cell:

B2 = A2
C2 = A3
D2 = A4

Then copy B24, and paste to B5????, where ???? is the row with the last
entry.

Then copy columns B, and paste special values, then delete column A and
sort A:C based on column A, which will make all the blanks go away.

HTH,
Bernie
MS Excel MVP
quot;rudyhquot; gt; wrote in message
...
gt;I have a sheet in this form:
gt; name1
gt; address1
gt; city1
gt; name2
gt; address2
gt; city2
gt;
gt; etc. for ~ 5000 names
gt; I would like to move all the names to one column, addresses to the next
gt; column and cities to the 3rd column so ai can sort the data on the names.
gt; How could I do this in an easy manner?
gt;
gt; Thank You in advance.
gt; Rudy
gt;
Rudy

If data is in sets of three as you describe and assuming in column A....

Enter this formula in B1 and copy across to D1 and down B,C and D until you
gets zeros.

=INDEX($A:$A,ROW(A1)*3-3 COLUMN(A1))

Copy this range and Paste Special(in place)gt;Valuegt;OKgt;Esc.

Delete column A.Gord Dibben Excel MVP

On Wed, 14 Dec 2005 13:14:59 -0800, quot;rudyhquot; gt;
wrote:

gt;I have a sheet in this form:
gt;name1
gt;address1
gt;city1
gt;name2
gt;address2
gt;city2
gt;
gt;etc. for ~ 5000 names
gt;I would like to move all the names to one column, addresses to the next
gt;column and cities to the 3rd column so ai can sort the data on the names.
gt;How could I do this in an easy manner?
gt;
gt;Thank You in advance.
gt;Rudy

Actually quite easy using the Copy/Paste Special options

What your trying to do is move the data from rows to columns.
Simply select all of the rows of data you wish to move/copy. In your
examply you have 6 rows (select all rows).

From the Task Bar select Edit - Copy

Open a new sheet and position your cursor in cell A1 of the sheet

From the Task Bar select Edit - Paste Special and select the Transpose Box
appearing in the bottom 3rd of the options available

Select OK

Your Done

What was in Cells A1:A6 now appears as column headers in Columns A1:F1

I use this option frequently.

quot;rudyhquot; wrote:

gt; I have a sheet in this form:
gt; name1
gt; address1
gt; city1
gt; name2
gt; address2
gt; city2
gt;
gt; etc. for ~ 5000 names
gt; I would like to move all the names to one column, addresses to the next
gt; column and cities to the 3rd column so ai can sort the data on the names.
gt; How could I do this in an easy manner?
gt;
gt; Thank You in advance.
gt; Rudy
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()