Finding missing values in a column

G

Guest

I'm looking for a way to automaticaly find missing values in a column of
numbers. Here's an example (all values are in the same column):

50
51
52
54
55

Value 53 is missing from the column (which should be increasing by 1 every
row). Is there a way to automatically detect that there is a gap between 2
values?

Thanks
 
R

Ron Coderre

With your list of contiguous source numbers beginning anywhere in Col_A

Example:
50
51
52
54
55


This regular formula returns the 1st missing value
B1:
=SMALL(INDEX((COUNTIF(A:A,ROW(INDIRECT(MIN(A:A)&":"&MAX(A:A))))=0)*ROW(INDIRECT(MIN(A:A)&":"&MAX(A:A))),0),ROW()+COUNTA($A:$A))
Copy that formula down until you receive an error value.

Using the above data, B1 returns 53

Is that something you can work with?
Post back with more questions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top