Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Nash
 
Posts: n/a
Default How do I find a missing number in a sequence of numbers?

Looking for a function or formula that will identify a missing number in a
range of cells containing a sequence of numbers.

Can anyone help?

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If it would be like 1,3,7,9,13,14,15,16,18,20 then you can create a list of
numbers 1 to 20 (assume they are in A1:A20), then adjacent to that list use
a formula like

=IF(ISNUMBER(MATCH(A1,MySequence,0)),"",A1)

where MySequence is the list you want to check, copy down to B20

--
Regards,

Peo Sjoblom

(No private emails please)


"Nash" wrote in message
...
Looking for a function or formula that will identify a missing number in a
range of cells containing a sequence of numbers.

Can anyone help?


  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Here's one way.....

Assume you have in A1:A9

1
2
3
4
5
7
8
9
10

6 is the missing value.

Array entered using the key combo of CTRL,SHIFT,ENTER:

=INDEX(ROW(INDIRECT(A1&":"&A9)),MATCH(0,COUNTIF(A1 :A9,ROW(INDIRECT(A1&":"&A9))),0))

Biff

"Nash" wrote in message
...
Looking for a function or formula that will identify a missing number in a
range of cells containing a sequence of numbers.

Can anyone help?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Automatic Number Sequence Awissa Excel Discussion (Misc queries) 1 July 8th 05 05:28 AM
The formula to find the smallest number in a row not equal to zero seastheday Excel Worksheet Functions 8 April 14th 05 11:58 PM
Using the Find tool in EXCEL TK Excel Worksheet Functions 2 February 11th 05 07:51 PM
How do I find the first value in a column less than a number? redeucer Excel Worksheet Functions 6 November 4th 04 09:59 PM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"