> If you're just looking for a report...
>
[quoted text clipped - 21 lines]
> >
> > Lynne
If you use those formulas in that other sheet, you'll end up with a bunch of
True/falses in column B of that new sheet.
You can use data|Filter|autofilter on column B to show just the falses. These
are the numbers that are missing.
> Dave,
>
[quoted text clipped - 36 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
> .. My first client number starts with
> 001,002,004.........456,457,459,461.....
> .....I am missing numbers in between so I need to know
> what formula to use or how to run a query to
> find the unused numbers to asign them to new clients.
> > .. I have a series of client account numbers that range from 001-999.
Think your client numbers are probably text numbers
Assume the text client numbers are listed in A1 down, eg:
002
003
007
015
016
019
etc
(the client numbers listed in col A can be unsorted)
Assume the max client number issuable for the numbers listed in col A is
say: 1000 (this number must be known)
Using 2 empty cols to the right, eg cols E and F
Put in E1, and array-enter** the formula by pressing CTRL+SHIFT+ENTER
(instead of just pressing ENTER):
=IF(ISNUMBER(MATCH(ROW(),$A$1:$A$1000+0,0)),"",ROW())
The range A1:A1000 corresponds to the full assumed range size of 1000. Adapt
the range to suit the max client number issuable. The "+0" in the part:
$A$1:$A$1000+0 is to coerce the text numbers in col A to real numbers for
the purpose.
**In the formula bar, look for the curly braces: { } around the formula
which Excel will insert upon correct array-entering. If you don't see the
curly braces, then it hasn't been correctly array entered. If so, click
inside the formula bar, and try it again (press CTRL+SHIFT+ENTER).
Then place in F1, press ENTER will do:
=IF(ROW(A1)>COUNT(E:E),"",INDEX(E:E,SMALL(E:E,ROW(A1)))-1)
Format F1 as Custom, type: 000
Select E1:F1, copy down to F1000.
All the unused / missing client numbers will be extracted at the top in col
F.

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Max - 09 Nov 2006 02:37 GMT
> All the unused / missing client numbers will be extracted at the top in
> col F.
The unused / missing numbers will appear neatly in ascending order

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Max - 09 Nov 2006 06:57 GMT
Errata for F1's formula, my apologies ..
> Then place in F1, press ENTER will do:
> =IF(ROW(A1)>COUNT(E:E),"",INDEX(E:E,SMALL(E:E,ROW(A1)))-1)
In F1 should be:
=IF(ROW()>COUNT(E:E),"",INDEX(E:E,SMALL(E:E,ROW())))

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Max - 09 Nov 2006 07:09 GMT
Further oops ..
> In F1 should be:
> =IF(ROW()>COUNT(E:E),"",INDEX(E:E,SMALL(E:E,ROW())))
Suffices to have it in F1 as:
=IF(ROW()>COUNT(E:E),"",SMALL(E:E,ROW()))

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Lynne - 09 Nov 2006 15:42 GMT
Hi Max,
I tried your formula and the first one worked but when I placed the
second formula in F1, I received an error message,
=IF(ROW(A1>COUNT(E:E),"",INDEX(E:E,SMALL(F:F,ROW(A1)))-1), where the
two quotation marks are in the formula. Do you have any suggestions of
what I might have done wrong? I really do appreciate all the help I am
getting regarding this issue.
Lynne
> > .. My first client number starts with
> > 001,002,004.........456,457,459,461.....
[quoted text clipped - 50 lines]
> xdemechanik
> ---
Max - 09 Nov 2006 15:59 GMT
Lynne,
As explained in my follow ups, there was an error earlier for the formula in
F1.
Place instead in F1, press ENTER will do:
=IF(ROW()>COUNT(E:E),"",SMALL(E:E,ROW()))
It should work fine. Try it. Let me know.

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
> Hi Max,
>
[quoted text clipped - 6 lines]
>
> Lynne
Max - 09 Nov 2006 22:49 GMT
Received response from OP ..
--- Lynne <lynne@adlerpias.com> wrote:
> Max,
>
> Thank you so much for you, that was the formula's
> that I was looking for.

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---