From: BRB on
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.
From: Don Guillett on
sample?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett(a)gmail.com
"BRB" <BRB(a)discussions.microsoft.com> wrote in message
news:93FADDD2-E412-4F09-AA3B-BD42E8345325(a)microsoft.com...
>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.

From: BRB on
Starting file

300 350 "blank" 230 "blank" 120
110 "blank" 210 "blank" 331 35
"blank" 10 450 "blank" "blank" 11

Processed file

10 110 230 350
11 120 300 450
35 210 331


Hope this helps
"BRB" wrote:

> 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.
From: Don Guillett on
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett(a)gmail.com
"BRB" <BRB(a)discussions.microsoft.com> wrote in message
news:A6D79057-7805-4F44-BA75-8B7D96E938F7(a)microsoft.com...
> Starting file
>
> 300 350 "blank" 230 "blank" 120
> 110 "blank" 210 "blank" 331 35
> "blank" 10 450 "blank" "blank" 11
>
> Processed file
>
> 10 110 230 350
> 11 120 300 450
> 35 210 331
>
>
> Hope this helps
> "BRB" wrote:
>
>> 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.

From: Don Guillett on
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
dguillett(a)gmail.com
"Don Guillett" <dguillett1(a)gmail.com> wrote in message news:...
> sample?
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> dguillett(a)gmail.com
> "BRB" <BRB(a)discussions.microsoft.com> wrote in message
> news:93FADDD2-E412-4F09-AA3B-BD42E8345325(a)microsoft.com...
>>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.
>