ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Filtering by digits (https://www.excelbanter.com/excel-discussion-misc-queries/37722-filtering-digits.html)

cj21

Filtering by digits
 

I have a dataset of about 5000 rows, in it there are product codes of
varying length, i just want to filter the 4-digit numbers.
Unfortunately the numbers are in text format because some begin with
zero's. Anyone got any ideas?

Chris


--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=391277


Paul Sheppard


Use the formula =LEN(Cell Ref) where Cell Ref is the cell reference of
the product code, this will return a value equal to the number of
characters in the product code, then do a filter for the 4


--
Paul Sheppard
------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=391277


Dave Peterson

I'd use a column of helper cells:

=--A2
and drag down.

Then filter by that column.
Custom|is greater than 999.

The -- converts the text numbers to number numbers.

cj21 wrote:

I have a dataset of about 5000 rows, in it there are product codes of
varying length, i just want to filter the 4-digit numbers.
Unfortunately the numbers are in text format because some begin with
zero's. Anyone got any ideas?

Chris

--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=391277


--

Dave Peterson


All times are GMT +1. The time now is 04:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com