Filtering numbers????

G

Guest

I have a column filled with 6 digit numbers and wanted to only show numbers
that ended in equal to or greater than 91 and less than or equal to 95 (ie.
*91, *95). I used the asterix and question mark symbol to represent any
series of numbers before the last 2 numbers, but it didnt work. Is there away
around this???? Thank you in advance
 
R

Roger Govier

Hi

You could make the test
=RIGHT(A1,2)="91" or "95"
Note, you will have to enclose your test numbers in quotes, as the
Right() function will return text values.
Alternatively
=--RIGHT(A1,2)=95
where the double unary minus will coerce the text value into a numeric.

Regards

Roger Govier
 
M

Max

Try filtering on a helper col ..

Assuming numbers in col A, from A2 down
Put in B2, copied down: =RIGHT(A2,2)+0
Then do the filter on col B according to your criteria
 
R

Ron Rosenfeld

I have a column filled with 6 digit numbers and wanted to only show numbers
that ended in equal to or greater than 91 and less than or equal to 95 (ie.
*91, *95). I used the asterix and question mark symbol to represent any
series of numbers before the last 2 numbers, but it didnt work. Is there away
around this???? Thank you in advance

You could use the Advanced Filter.

Data/Advanced Filter

If your data starts in A5, you could set up your criterion range to look like:

Minimum Maximum
=MOD(A5,100)>=91 =MOD(A5,100)<=95



--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top