Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default split range of numbers in two columns to as many as numbers in ran

i have two columns with the range of numbers
like
12 23
24 35
36 47
i need to brake each row so it will be
12
13
14
PLS Help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default split range of numbers in two columns to as many as numbers in ran

I'm not qute sure what you are asking for;
but try selecting the second column then put your pointer over part of the
border of your selection, then press and hold the left mouse button and drag
the selection down to the bottom of the first list in the first column. Now
you have one big list, then apply an auto filter using Data|Filter|Auto
Filter, press the drop down arrow and select acsending order?

"arsovat" wrote:

i have two columns with the range of numbers
like
12 23
24 35
36 47
i need to brake each row so it will be
12
13
14
PLS Help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default split range of numbers in two columns to as many as numbers in ran

arsovat,

Select 1 column by however many rows you have (for your example, 3 rows: the cells with 12, 24, and
36), then run the macro below.

HTH,
Bernie
MS Excel MVP

Sub TryNow()
Dim myRow As Long
Dim myR As Range
Dim myC As Range
Dim i As Long

Set myR = Selection
If myR.Columns.Count 1 Then Exit Sub

With Application
..EnableEvents = False
..ScreenUpdating = False
End With

For myRow = myR.Cells(myR.Rows.Count).Row To _
myR.Cells(1).Row Step -1
For i = Cells(myRow, myR.Column).Value + 1 To _
Cells(myRow, myR.Column + 1).Value
Cells(myRow, myR.Column).EntireRow.Copy
Cells(myRow, myR.Column).Insert
Next i
Set myC = Cells(myRow, myR.Column).Resize(Cells(myRow, _
myR.Column + 1) - Cells(myRow, myR.Column).Value + 1)
myC.Formula = "=" & Cells(myRow, myR.Column).Value & _
" + ROW()-ROW(" & Cells(myRow, myR.Column).Address & ")"
myC.Copy
myC.PasteSpecial xlPasteValues
Next myRow

myR.Offset(0, 1).EntireColumn.Delete
myR.Cells(1).Select

With Application
..EnableEvents = True
..ScreenUpdating = True
End With

End Sub



"arsovat" wrote in message
...
i have two columns with the range of numbers
like
12 23
24 35
36 47
i need to brake each row so it will be
12
13
14
PLS Help



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
Displaying numbers stored in a range??? rpp114 Excel Discussion (Misc queries) 0 May 4th 06 07:37 PM
Searching a range of numbers for a specified total saustin Excel Worksheet Functions 2 January 19th 06 03:59 PM
Find similar numbers from two columns of numbers Dennis Andrews Excel Discussion (Misc queries) 1 November 30th 05 07:54 AM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
print 3 column range in six columns dawgpilot Excel Discussion (Misc queries) 3 April 28th 05 10:53 PM


All times are GMT +1. The time now is 04:10 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"