how to determine if a series of numbers contain odd or even values

K

Kittysaid

I have lists of numbers that have a unique serial number. I would like to
delete the rows that contain EVEN serial numbers.
 
T

Toppers

If they are NUMBERS, check if exactly divisible by 2

e.g. =IF(MOD(A1,2)=0,"delete","keep")

You could filter on "Delete" and then delete these rows

HTH
 
P

Pete_UK

If they are a mixture of letters and numbers then you could just
examine the final digit:

=IF(MOD(RIGHT(A1,1),2)=0,"delete","keep")

Hope this helps.

Pete
 
R

RagDyer

With ATP installed:

=ISEVEN(A1)

And copy down.

Filter on and delete the "True" rows.

If serial numbers are alpha-numeric, try:

=ISEVEN(RIGHT(A1))
 
R

romelsb

Hi kitty you are quite tricky...the guys gave a lot but no reply...Guys,
look for help about meaning of "delete the rows that contain EVEN serial
numbers"...Type on cell A1:=row(a1)=1
A2:=ROW(a2)=2
how to delete a standard excel row???
 
K

Kittysaid

This answer was the easiest and most helpful. The MOD answer worked, but
this is the easiest to remember. I added this to a macro, so I can use it
whenever I am filtering data by serial number.
 
Top