Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
andy
 
Posts: n/a
Default Finding numbers missing from a sequence

I've just been asked if there's a way Excel can easily find if there are
missing numbers from a sequence of numbers in a column.

For example, the column contains numbers between 1000 and 2000, but the user
isn't sure if every number between 1000 and 2000 is present in the column,
to possibly make it more interesting, each number may appear more than once
in the column.

Any ideas?

Cheers,

Andy


  #2   Report Post  
Jonathan Cooper
 
Posts: n/a
Default

use a helper worksheet

starting in cell A1, number from 1000 through 2000.
starting in b1, use a formula =COUNTIF('good data'!$A$1:$A$2000,'helper
sheet'!A1)
copy formula from B1:B1000

now do an autofilter on column B. Filter for value of 0.

"andy" wrote:

I've just been asked if there's a way Excel can easily find if there are
missing numbers from a sequence of numbers in a column.

For example, the column contains numbers between 1000 and 2000, but the user
isn't sure if every number between 1000 and 2000 is present in the column,
to possibly make it more interesting, each number may appear more than once
in the column.

Any ideas?

Cheers,

Andy



  #3   Report Post  
Jim Rech
 
Posts: n/a
Default

This is how I'd do it that is pretty easy:

Say you have the numbers 2, 4 and 6 in the range A1:A3. You want to know
which numbers from 1 to 10 are missing.

-Enter the numbers 1 to 10 (use the Fill handle) in C1:C10.
-Enter the formula:

=IF(ISERROR(MATCH(C1,$A$1:$A$3,FALSE)),"x","")

in D1 and copy it down to D10. Now every "x" represents a missing number.

--
Jim
"andy" wrote in message
...
| I've just been asked if there's a way Excel can easily find if there are
| missing numbers from a sequence of numbers in a column.
|
| For example, the column contains numbers between 1000 and 2000, but the
user
| isn't sure if every number between 1000 and 2000 is present in the column,
| to possibly make it more interesting, each number may appear more than
once
| in the column.
|
| Any ideas?
|
| Cheers,
|
| Andy
|
|


  #4   Report Post  
andy
 
Posts: n/a
Default

Sorry, only just checked back for replies.

Thanks to both of you for your help.

Andy


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
Repeating a sequence of numbers down a column Nexan Excel Discussion (Misc queries) 2 March 4th 05 05:39 PM
finding numbers flat6 New Users to Excel 2 February 17th 05 10:17 PM
finding data between two numbers (1000-1999)and totaling correspo. plasticmaker Excel Discussion (Misc queries) 1 January 7th 05 07:55 PM
Finding Numbers with Cells that also contain letters Adam Excel Discussion (Misc queries) 7 December 29th 04 02:41 PM
finding common numbers in large lists Jenn Excel Worksheet Functions 1 November 11th 04 07:42 PM


All times are GMT +1. The time now is 04:24 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"