ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Moving cells in a column (https://www.excelbanter.com/excel-discussion-misc-queries/139077-moving-cells-column.html)

CTCrow

Moving cells in a column
 
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.





Eric

Moving cells in a column
 
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.


"CTCrow" wrote:

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.



Eric

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

"Eric" wrote:

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.


"CTCrow" wrote:

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.



Roger Govier

Moving cells in a column
 
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
--
Regards

Roger Govier


"CTCrow" wrote in message
...
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.







RagDyeR

Moving cells in a column
 
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!
================================================== ===


"CTCrow" wrote in message
...
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.






Dave Peterson

Moving cells in a column
 
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.

CTCrow wrote:

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.


--

Dave Peterson


All times are GMT +1. The time now is 04:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com