Missing Numbers??

Sotomayor

New Member
Joined
Oct 18, 2005
Messages
40
Hi

I'm looking for a formula or something maybe someone can help me. Let me explain. I usually have a long list of numbers and I need a way to know when at some point of the list, I have skipped a number. Something like this:

102
103
104
Missing Number Here****
106
107
Missing Number Here****
110

Something like that. Is there a way to do this with a formula?

Thanks a lot for the help
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You can use conditional formatting.
If the first number in your list is in cell A1 then in cell a2 set the conditonal format:
If cell value is not equal to A1+1 then [set a colour format].

Then select cell A2 and the range to the end of your list and go:
conditional format OK
 
Upvote 0
The easiest way I know of is to use a helper column, as follows:
Assuming your data starts in A2 (A1 is heading row?), and that you have a blank column (we'll use column B for this example). The formula in cell B2 could be as simple as
Code:
=A3-A2
(a more elegant solution follows). Copy this down to the last row of data. Any cell in column B that doesn't equal 1 indicates that the number in the next row down skipped something.
Now, for a more elegant solution, your first formula would be in cell B3:
Code:
=if(A3-A2<>-1,"Missing", "")
Then you could just glance down the column for the word "Missing". You could also filter on the word "Missing", but since that hides the rest of the rows, you might not want to use a filter.
Hope this helps,
Cindy
 
Upvote 0
Hi

I'm looking for a formula or something maybe someone can help me. Let me explain. I usually have a long list of numbers and I need a way to know when at some point of the list, I have skipped a number. Something like this:

102
103
104
Missing Number Here****
106
107
Missing Number Here****
110

Something like that. Is there a way to do this with a formula?

Thanks a lot for the help
Book4
ABCDEFG
1XMin102Full ListMissing
2102Max110102105
3103# Missing3103108
4104104109
5106105 
6107106
7110107
8108
9109
10110
11 
12
Sheet1


E1:

=MIN(A2:A7)

E2:

=MAX(A2:A7)

E3:

=(E2-E1+1)-ROWS(A2:A7)

or:

=(E2-E1+1)-COUNT(A2:A7)

F2, copied down:

=IF(ROWS($F$2:F2)<=$E$2-$E$1+1,$E$1+ROWS($F$2:F2)-1,"")

G2:

Control+shift+enter...

=IF(ROWS($G$2:G2)<=$E$3,INDEX($F$2:$F$10,SMALL(IF(1-ISNUMBER(MATCH($F$2:$F$10,$A$2:$A$7,0)),ROW($F$2:$F$10)-ROW($F$2)+1),ROWS($G$2:G2))),"")

and copy down.
 
Upvote 0

Forum statistics

Threads
1,224,930
Messages
6,181,829
Members
453,067
Latest member
mdiz777

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top