Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default move rows from column to column

I have Column b with Name in one row and number in 2nd row want to move all
numbers to Column a and leave name in Column b without having to move each
one seperate. 1500 records.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,268
Default move rows from column to column

Use a help column, in the first adjacent cell type

=ISNUMBER(A2)

where A2 is the first cell with name
copy down 1500 rows by either dragging the formula or
double click the lower right corner of the help cell (as long as it is in an
adjacent column)
Then apply datafilterautofilter and filter on FALSE in the help columns,
select all visible cells and copy and paste somewhere else, then select TRUE
from the
dropdown and select all numbers and copy and paste next to the names you
previously copied

You can also apply autofilter without a help column, use custom and select
less than zzzzzzzzz
that will give you the names and then select is less than and type a number
greater than the greatest number in your list like 9999999999999, that will
give you all the numbers


--


Regards,


Peo Sjoblom


"rgawlik" wrote in message
...
I have Column b with Name in one row and number in 2nd row want to move all
numbers to Column a and leave name in Column b without having to move each
one seperate. 1500 records.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default move rows from column to column

Lets say we have in column B:

Mike
1
John
23
David
15
Nigel
17
Trevor
19
George
31

and we want in columns A&B:

1 Mike
23 John
15 David
17 Nigel
19 Trevor
31 George

Then just run:

Sub movem()
n = Cells(Rows.Count, 2).End(xlUp).Row
k = 1
For i = 2 To n Step 2
Cells(k, 1).Value = Cells(i, 2).Value
k = k + 1
Next

For i = n To 2 Step -2
Cells(i, 2).Delete Shift:=xlUp
Next
End Sub


--
Gary''s Student - gsnu200751


"rgawlik" wrote:

I have Column b with Name in one row and number in 2nd row want to move all
numbers to Column a and leave name in Column b without having to move each
one seperate. 1500 records.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to leave column 1 and move all other colums up or down rows. socks Excel Discussion (Misc queries) 1 August 17th 07 02:11 AM
name,address in same column different rows. How move to columns kimbafred Charts and Charting in Excel 8 July 20th 07 02:12 AM
how to move the cursor to column A after entering data column F tskaiser New Users to Excel 2 April 29th 06 02:28 PM
move contents of column C based on criteria related to column A Debra Excel Discussion (Misc queries) 2 December 27th 05 10:25 PM
Move a Column to rows soddydj Excel Discussion (Misc queries) 2 July 29th 05 04:54 PM


All times are GMT +1. The time now is 02:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"