ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   find missing numbers in a sequence (https://www.excelbanter.com/excel-discussion-misc-queries/93692-re-find-missing-numbers-sequence.html)

kaytoo

find missing numbers in a sequence
 

is it possible find missing numbers in a sequence?

example:
1
2
3
5
6
7
9
10

4 and 8 are missing.


--
kaytoo
------------------------------------------------------------------------
kaytoo's Profile: http://www.excelforum.com/member.php...o&userid=34057
View this thread: http://www.excelforum.com/showthread...hreadid=551487


Bernard Liengme

find missing numbers in a sequence
 
Depends what you mean by 'sequence'; 2,4,6,8 is a sequence, so is 5, 10, 15,
20 and then there is 1, 1, 2, 3, 5, 8....but I cannot spell Fibonacci!

If you mean a sequence where each value is the previous value plus 1:
With your numbers in A1:A8
In B2 enter =IF(A2=A1+1,"",A1+1&" missing")
Copy down the column

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"kaytoo" wrote in
message ...

is it possible find missing numbers in a sequence?

example:
1
2
3
5
6
7
9
10

4 and 8 are missing.


--
kaytoo
------------------------------------------------------------------------
kaytoo's Profile:
http://www.excelforum.com/member.php...o&userid=34057
View this thread: http://www.excelforum.com/showthread...hreadid=551487





All times are GMT +1. The time now is 02:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com