+ Reply to Thread
Results 1 to 5 of 5

Filtering numbers with and without spaces in large SS

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31

    Filtering numbers with and without spaces in large SS

    Hi there,


    I have a SS that has 20,000 rows.

    One of the columns contains numbers.

    I'm tryiny to filter out the numbers that are NOT 7 digits long.

    The problem i have is that some of the cells have space in between the numbers.

    e.g 240 1332, 432 2443, 234 2345 234 etc.

    And some are normal e.g 4234535, 53596835, 3459284, 2423 etc

    So, filtering between ranges isn't working i think because numbers with spaces in them aren't read as numbers in excel.

    Cheers for any idea!
    Last edited by Ben Morton; 10-20-2009 at 08:49 AM. Reason: Solved

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Flitering numbers with and without spaces in large SS

    Hi,

    Use a helper column and enter
    Please Login or Register  to view this content.
    Now copy down your list and filter the helper column for the values that are not 7 and delete those rows.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31

    Re: Flitering numbers with and without spaces in large SS

    Richard,

    Thanks a millon!

    I changed the cell reference in your formula to the column with the numbers and it worked a treat!

    Cheers

    Ben.

  4. #4
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31

    Re: Filtering numbers with and without spaces in large SS

    Ahh,

    I think I see what you've done - if the LEN function finds a space it takes one of the total. Very neat.

    Thanks again.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Filtering numbers with and without spaces in large SS

    Indeed,

    However I now realise it's more complicated than need be. I was thinking you might want to recreate the number without a space, hence the string slicing and adding the two sets of digits either side of the space.

    Please Login or Register  to view this content.
    would have done just as well.

    Rgds

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1