#1   Report Post  
cj21
 
Posts: n/a
Default 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

  #2   Report Post  
Paul Sheppard
 
Posts: n/a
Default


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

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
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
Mod 10 & 11 Pablo Excel Worksheet Functions 13 August 10th 05 11:39 AM
trouble filtering a list. Why isn't column filtering? Pat Excel Worksheet Functions 1 July 18th 05 03:30 PM
Help - Any number longer than 12 digits turns to scientific and ro LMH_VT Excel Discussion (Misc queries) 3 July 17th 05 03:58 PM
Concatenate function - keeping "displayed" extra digits EricKei Excel Discussion (Misc queries) 3 June 15th 05 10:16 PM
Least number of digits in Y-axis labels Charley Kyd Charts and Charting in Excel 9 February 6th 05 03:03 PM


All times are GMT +1. The time now is 11:01 AM.

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"