Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

verify numbering sequence 1

Status
Not open for further replies.

gray78

Programmer
Feb 3, 2005
78
US
In an excel work sheet, is there a way to verify that the numbering in a column is in sequence and if a number is missing in the sequence to identify it?

Thanks
 
If there is logic to the sequence, simply test the logic

eg - if you require numbers to increment by 1 then

=if(A2-A1<>1,"Error in sequence","")

if you require them to increment by 5 then

=if(A2-A1<>5,"Error in sequence","")

in both cases, copy the formula to the bottom of your data set and then use the filter to view missing items


Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Thank you, and now the stupid question of the day...How do I use the filter as you suggested?

Thanks again
 
select both columns

Data>Filter>Autofilter

Filter on your 2nd column for "Error In Sequence"

This will give you the upper numbers below which there are missing numbers in teh sequence

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
sorry to be a pain, but, i am not understanding. I have two columns: column "A" contains the sequenced numbers I am checking and column "B" is currently blank but where I want the "Error in sequence" remark.
1. where do I place the formula?(for testing purposes, lets assume I have data in range a1:a50
2. how do I use the filter once the formula is placed in the proper cell?

Thank you
 
formula goes in cell B1
copy it down to B50
Select both columns
Data>Filter>Autofilter
select "Error In Sequence"

et voila

for datasets of that kind of size though, I would simply 'eyeball' the data

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top