Re: serial numbers how to find gaps
- From: "Biff" <biffinpitt@xxxxxxxxxxx>
- Date: Wed, 1 Nov 2006 23:29:03 -0500
This assumes the start of the sequence is listed. What if it's one of the
missing values? Also, it doesn't stop. There's no defined end of sequence.
Biff
"Ron Coderre" <ronREMOVETHIScoderre@xxxxxxxxxxx> wrote in message
news:5EEA3629-E2AF-4018-B753-A9B160502C5F@xxxxxxxxxxxxxxxx
Going by your posted example
With the series beginning in A1
Put this ARRAY FORMULA* in C1
=INDEX(ROW($A$1:INDEX(A:A,MAX(A:A))),SMALL(IF(COUNTIF($A$1:INDEX(A:A,MAX(A:A)),ROW($A$1:INDEX(A:A,MAX(A:A)))+MIN(A:A)-1)=0,ROW($A$1:INDEX(A:A,MAX(A:A)))+MIN(A:A)-1),ROWS($1:1))-MIN(A:A))+MIN(A:A)
*Note_1: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].
Note_2: There are NO spaces in that formula.
Copy C1 and paste into C2 and down as far as you need.
That formula automatically starts listing values, beginning with the first
missing value after the smallest value in the list and continuing listing
misisng values up to the largest value in the list. It doesn't matter if
the
list is not in order
Is that something you can work with?
***********
Regards,
Ron
XL2002, WinXP
"DoronT" wrote:
Hello,
How can I find gaps in a column of serial numbers, gaps can be of one
number
or more, gaps can appear several time in the same line. Example:
10010
10011
10012
10014
10015
10018
(gaps found are 10013, 10016, 10017)
I need to present those gaps in any possible way.
Thanks,
Doron
.
- Prev by Date: Re: conditional formatting
- Next by Date: Re: naming columns
- Previous by thread: Re: serial numbers how to find gaps
- Next by thread: Re: IN EXCEL 2003 HOW DO i GET A CELL TO BE 4-0 INSTEAD OF APR00
- Index(es):
Relevant Pages
|