+ Reply to Thread
Results 1 to 3 of 3

Sort by number and ignore characters.

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    57

    Sort by number and ignore characters.

    Ok, here is what I am trying to do:
    132.45
    132.46
    J132.45

    The J132.45 should come before 132.46
    I have built macros to pull information from one sheet to multiple sheets, but I can't get it to sort properly because some of the values have letters in front. Any way to ignore the letters?

    Thanks!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Sort by number and ignore characters.

    Hi Ataraxicatom,

    The Value() function might be what you need in a Helper Column and then sort by the numbers.

    I've used a formula of:
    =IFERROR(VALUE(A1),IFERROR(VALUE(MID(A1,2,40)),VALUE(MID(A1,3,40))))
    for an example in the attached.

    If there is lots of long text in front of the numbers, perhaps a VBA User Defined Function (UDF) would be more appropriate.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Sort by number and ignore characters.

    Thanks! The helper column was exactly what I needed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sort by number of characters in cell/column? How please?
    By be-nice-2-me in forum Excel General
    Replies: 3
    Last Post: 06-25-2013, 08:09 AM
  2. sort list/range of number with special characters
    By jscc in forum Excel General
    Replies: 8
    Last Post: 08-03-2012, 04:24 PM
  3. sort list/range of number with special characters
    By jscc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2012, 09:02 AM
  4. Sort by number of characters?
    By DrSues02 in forum Excel General
    Replies: 5
    Last Post: 01-16-2011, 04:21 PM
  5. Is there a way to sort items by the number of characters?
    By jdwilliams1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2006, 12:56 PM

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