Moving cells in a column

G

Guest

I have some data that is all in order in a column, like this:

name 1
street 1
city 1
name 2
street 2
city 2
name 3
street 3
city 3

and i like to move the cells to look like this:
(Each in it's own cell for sorting)

name 1 street 1 city 1
name 2 street 2 city 2
name 3 street 3 city 3

without having to drag every single cell one at a time. I have over 2,500
cells and it would take too much work. My son is charging mee too much to do
it.(i should start charging him for rent and food)

What options do i have?

all help is really apreciated.
 
G

Guest

1) Set up a "helper" column.
2) Enter 1 through 3 in the first five rows of the helper column. Copy this
pattern down through your dataset.
3) Sort on the helper column. All your 1's will run together (names),
all your 2's will run together (street address), then your 3's (cities).
These continuous blocks of data are then easily copied/pasted into
separate columns and will appear in their natural order so long as you don't
define a second criteria by which to perform your initial sort.
 
G

Guest

Correction to 2): Enter a 1-2-3 pattern in the first THREE rows of the helper
column. Copy this pattern through your dataset.
 
R

Roger Govier

Hi

Assuming your data is all in column A, in say C1
enter
in C1 =INDEX($A:$A,(ROW()*3)-2)
in D1 =INDEX($A:$A,(ROW()*3)-1)
in E1 =INDEX($A:$A,(ROW()*3))

Copy down until the result in C,D and E equals 0
 
R

RagDyeR

Say that these names and addresses are all in Column A on Sheet1.
*NO* spaces (empty cells) between entries
Say you want to start your new data configuration on another sheet.

Enter this formula *anywhere* on the new sheet:

=INDEX(Sheet1!$A:$A,3*ROWS($1:1)+COLUMNS($A:A)-3)

Drag across 2 columns to copy, to a total of 3 columns.

Then select those 3 cells, and drag down the 3 cell *selection* as far as
needed.

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================


I have some data that is all in order in a column, like this:

name 1
street 1
city 1
name 2
street 2
city 2
name 3
street 3
city 3

and i like to move the cells to look like this:
(Each in it's own cell for sorting)

name 1 street 1 city 1
name 2 street 2 city 2
name 3 street 3 city 3

without having to drag every single cell one at a time. I have over 2,500
cells and it would take too much work. My son is charging mee too much to do
it.(i should start charging him for rent and food)

What options do i have?

all help is really apreciated.
 
D

Dave Peterson

With the data in A1:A2500, put this in B1:

=OFFSET($A$1,COLUMN()-2+3*(ROW()-1),0)
And drag across to D1

Then select b1:d1 and drag down until you run out of data (around row 834)

This assumes that each group has exactly 3 cells associated with it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top