+ Reply to Thread
Results 1 to 8 of 8

sort cells with hyphen #####-###-####

  1. #1
    bagman
    Guest

    sort cells with hyphen #####-###-####

    How do you sort a column of numbers with hyphens?
    Example #####-###-####.
    I want to sort by the 3 middle numbers
    Thanks

  2. #2
    Jason Morin
    Guest

    RE: sort cells with hyphen #####-###-####

    You can extract the 3 middle characters to a new column and then sort on that
    new
    column.

    =MID(A1,7,3)

    HTH
    Jason
    Atlanta, GA

    "bagman" wrote:

    > How do you sort a column of numbers with hyphens?
    > Example #####-###-####.
    > I want to sort by the 3 middle numbers
    > Thanks


  3. #3
    Bob Phillips
    Guest

    Re: sort cells with hyphen #####-###-####

    Put the middle numbers into a separate column and sort by that.

    This formula will get you those values

    =LEFT(MID(A1,FIND("-",A1)+1,99),FIND("-",MID(A1,FIND("-",A1)+1,99))-1)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "bagman" <[email protected]> wrote in message
    news:[email protected]...
    > How do you sort a column of numbers with hyphens?
    > Example #####-###-####.
    > I want to sort by the 3 middle numbers
    > Thanks




  4. #4
    bagman
    Guest

    RE: sort cells with hyphen #####-###-####

    Hello Jason,

    Thanks..But I am not that good with excel..so could you explain how to
    extract the by the three middle numbers and sort the complete number in a
    new column.
    Sorry for all the questions.

    "Jason Morin" wrote:

    > You can extract the 3 middle characters to a new column and then sort on that
    > new
    > column.
    >
    > =MID(A1,7,3)
    >
    > HTH
    > Jason
    > Atlanta, GA
    >
    > "bagman" wrote:
    >
    > > How do you sort a column of numbers with hyphens?
    > > Example #####-###-####.
    > > I want to sort by the 3 middle numbers
    > > Thanks


  5. #5
    bagman
    Guest

    RE: sort cells with hyphen #####-###-####

    Hello Bob,

    As I told Jason I am not very good with excel..I got your formula. But how
    and where to I enter it get the column to sort in a new column.
    Thanks


    "bagman" wrote:

    > How do you sort a column of numbers with hyphens?
    > Example #####-###-####.
    > I want to sort by the 3 middle numbers
    > Thanks


  6. #6
    Tom Ogilvy
    Guest

    Re: sort cells with hyphen #####-###-####

    Bob's formula
    =LEFT(MID(A1,FIND("-",A1)+1,99),FIND("-",MID(A1,FIND("-",A1)+1,99))-1)

    would assume your data is in column A. So this would be placed in cell B1,
    then copied down next to each entry in column A.

    --
    Regards,
    Tom Ogilvy

    "bagman" <[email protected]> wrote in message
    news:[email protected]...
    > Hello Bob,
    >
    > As I told Jason I am not very good with excel..I got your formula. But how
    > and where to I enter it get the column to sort in a new column.
    > Thanks
    >
    >
    > "bagman" wrote:
    >
    > > How do you sort a column of numbers with hyphens?
    > > Example #####-###-####.
    > > I want to sort by the 3 middle numbers
    > > Thanks




  7. #7
    bagman
    Guest

    Re: sort cells with hyphen #####-###-####

    Thanks Tom, Bob and Jason,
    That worked...

    "Tom Ogilvy" wrote:

    > Bob's formula
    > =LEFT(MID(A1,FIND("-",A1)+1,99),FIND("-",MID(A1,FIND("-",A1)+1,99))-1)
    >
    > would assume your data is in column A. So this would be placed in cell B1,
    > then copied down next to each entry in column A.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "bagman" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hello Bob,
    > >
    > > As I told Jason I am not very good with excel..I got your formula. But how
    > > and where to I enter it get the column to sort in a new column.
    > > Thanks
    > >
    > >
    > > "bagman" wrote:
    > >
    > > > How do you sort a column of numbers with hyphens?
    > > > Example #####-###-####.
    > > > I want to sort by the 3 middle numbers
    > > > Thanks

    >
    >
    >


  8. #8
    Registered User
    Join Date
    08-18-2004
    Posts
    5

    Unhappy FIND AND REPLACE ##### (Numeric Field Code)

    I reallly need your help. I'm working on various lenghty documents and I need an easier way to find/replace ##### and not go through 500 pages cell by cell.

    Can anyone help?

    Thanks, Leah

+ 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