Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
B.H. Hadi
 
Posts: n/a
Default to find missing serial numbers in randomly generated numbers

I have a set of randomly generated four digit numbersin ascending order. I
want to find out and make a list of all the left out 4 digits. Can you help
me
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default to find missing serial numbers in randomly generated numbers

Try this solution:
Assume that your 4 digit No's are in range(A2:An)!

Enter in B2:
=A3-A2 and fill it down as necessary
in C2:
=IF($B2=1,"",IF($A2+CELL("column",C$1)-2<$A3,$A2+CELL("column",C$1)-2,""))
and fill it right to last column (IV), and down as necessary!

In columns C:IV you get the left out . To say the truth there is a limit of
this solution: if more then 254 4 digits miss between two random No, then
those above 254 will not appear in the list!

Regards,
Stefi

€˛B.H. Hadi€¯ ezt Ć*rta:

I have a set of randomly generated four digit numbersin ascending order. I
want to find out and make a list of all the left out 4 digits. Can you help
me

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Herbert Seidenberg
 
Posts: n/a
Default to find missing serial numbers in randomly generated numbers

Set up your data as shown:
set_rand set_all Criteria
10 10 11 test
13 11 12 TRUE
14 12 15
18 13 16
20 14 17
22 15 19
.... ... ...

For simplicity only 2 digits are used.
The first column contains your random numbers.
Fill in all the numbers from 10 to 99 in the second column.
Select the headers and the data below it for
set_rand, set_all and Criteria and
Insert Name Create Top Row
Enter this formula into the TRUE cell:
=COUNTIF(set_rand,set_all)=0
Data Filter Advanced Filter
Copy to another location
List Range: select set_all and its header
Criteria Range: =Criteria
Copy to: anywhere or column 3 as shown

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
I have a set of numbers in an excel spreadsheet and want to find t Charles Excel Discussion (Misc queries) 4 January 11th 05 11:39 PM
Randomly Sort a Series of Numbers Shoelaces Excel Discussion (Misc queries) 3 January 8th 05 07:25 PM
find numbers in a range that add to a specific value Brett Excel Discussion (Misc queries) 1 December 20th 04 01:55 PM
How do you find duplicate values in excel- 2 columns of numbers rickmanz Excel Discussion (Misc queries) 1 December 15th 04 11:16 PM
two columns of numbers, need to sort/filter to find one number th. Larry in Seattle Excel Discussion (Misc queries) 1 December 10th 04 06:17 AM


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