LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default Missing Numbers

I seem to get "slightly" better performance with the following idea by just
a hair. Needs XL 2000 or better due to "Filter."

Sub Demo()
'// Dana DeLouis
Dim v1, v2
Dim j As Long
With WorksheetFunction
v1 = .Transpose(Range([A2], [A2].End(xlDown)))

ReDim v2(.Min(v1) To .Max(v1))
For j = LBound(v2) To UBound(v2)
v2(j) = j
Next

For j = LBound(v1) To UBound(v1)
v2(v1(j)) = "x"
Next

v2 = Filter(v2, "x", False)
[b2].Resize(UBound(v2) + 1) = .Transpose(v2)
End With
End Sub

--
Dana DeLouis
Using Windows XP & Office XP
= = = = = = = = = = = = = = = = =


"Soniya" wrote in message
...
Hi All,

Ho can i have a macro to find missing numbers from a
serial; to get a result something like..

COLUMNA CLOMN B

DATA RESULT
100 103
101 104
102 108
105 109
106
107
110

TIA
Soniya



 
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
Missing row numbers kingfisher Excel Discussion (Misc queries) 2 January 21st 10 10:57 PM
Row Numbers Missing denisej77 Excel Worksheet Functions 1 November 18th 08 02:21 PM
Get Missing Numbers rc Excel Discussion (Misc queries) 2 December 4th 07 09:50 PM
to find missing serial numbers in randomly generated numbers B.H. Hadi Excel Worksheet Functions 2 December 1st 05 10:56 PM
Missing row numbers, HELP !!!! Tony Excel Discussion (Misc queries) 2 August 17th 05 02:27 AM


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

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

About Us

"It's about Microsoft Excel"