Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default Sorting a list of numbers

Option Explicit
Sub SASLineEmUP()
Dim lr As Long
Dim i As Long
Dim lc As Long
Application.ScreenUpdating = False
Columns(1).Clear
lr = Cells.Find("*", Cells(Rows.Count, Columns.Count) _
, , , xlByRows, xlPrevious).Row

For i = 2 To lr
lr = Cells(Rows.Count, 1).End(xlUp).Row + 1
lc = Cells(i, Columns.Count).End(xlToLeft).Column
Cells(i, 2).Resize(, lc).Copy 'Cells(lr, 1)
Cells(lr, 1).PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=True
Next i

Columns(1).Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortTextAsNumbers
Application.ScreenUpdating = True
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message news:...
sample?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"BRB" wrote in message
...
I have inherited an excel file with numbers across 100 columns and over
300
rows with several blank cells (likely 15%). I would like to format these
numbers across 10 columns and however many rows are necessary, but
without
any blank cells, in ascending order down each column.
Can someone help me how to do this? Thank you.



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
Sorting a list of numbers BRB Excel Discussion (Misc queries) 3 June 4th 10 11:59 PM
Sorting a list of numbers ME Cochran Excel Discussion (Misc queries) 4 May 19th 10 09:33 AM
Long List of Numbers sorting talltom Excel Worksheet Functions 4 June 11th 07 03:11 PM
Please help - sorting list of numbers ivoryblue1 Excel Worksheet Functions 2 August 16th 06 05:53 PM
Sorting List of Numbers Rowf Excel Discussion (Misc queries) 4 March 8th 05 08:29 PM


All times are GMT +1. The time now is 06:05 PM.

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"