Home » excel » excel – To find the missing numbers in a list of cells

excel – To find the missing numbers in a list of cells

Posted by: admin May 14, 2020 Leave a comment

Questions:

In an excel sheet i have number in A colum.Suppose,in column a the number are as follows:

1

2

3

7

8

11

12

13

I need a formula in excel to find out only those numbers which are missing in the list.For example,in the above list,4,5,6,9,10 numbers are missing.

How to&Answers:

Here’s an updated version of the missing numbers formula using Aggregate

=IFERROR(AGGREGATE(15,6,ROW(INDEX(A:A,MIN(A$1:A$10)):INDEX(A:A,MAX(A$1:A$10)))/(COUNTIF(A$1:A$10,ROW(INDEX(A:A,MIN(A$1:A$10)):INDEX(A:A,MAX(A$1:A$10))))=0),ROW()),"")

enter image description here

Answer:

Try using a combination of COUNTIF and IF function.

Assuming the numbers in the list are in columns A1:A8 and the number in question is in B1, type this in a cell:
IF(COUNTIF($A$1:$A$8,$B$1) > 0, “IT EXISTS”, “IT DOESN’T EXISTS”)

Some References:

COUNTIF Function

IF Function