+ Reply to Thread
Results 1 to 5 of 5

Sorting Column With Cell Values Containg -

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Sorting Column With Cell Values Containg -

    Greetings,
    I've been working on this for a while (the attached is a current sample that is not part of the original Workbook).
    I am needing to sort a column with some of the cell values containing an "-" (Ex: 103-A and 10-C). The sort does not include those cell values.
    Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,120

    Re: Sorting Column With Cell Values Containg -

    One way, assuming we can use column B:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: Sorting Column With Cell Values Containg -

    THats because if you have anything other than a number in a cell, excel sees that as text - and all text sort together, all values sort together
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    510

    Re: Sorting Column With Cell Values Containg -

    TMS,
    Works great!!!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,120

    Re: Sorting Column With Cell Values Containg -

    You're welcome. Thanks for the rep.

+ 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. Replies: 3
    Last Post: 04-07-2022, 09:02 AM
  2. Sum for cell containg text - Sum all row
    By lolla70 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-19-2018, 02:01 PM
  3. Cell containg array name
    By Tresfjording in forum Excel General
    Replies: 3
    Last Post: 10-31-2017, 08:10 AM
  4. Splitting a Cell containg address
    By jayw999 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2015, 09:37 PM
  5. problem with getting information from column containg dates
    By vikas189 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-18-2012, 03:58 PM
  6. I can't remove periods (.) from a cell containg a name
    By dschmitt in forum Excel General
    Replies: 10
    Last Post: 03-14-2010, 09:00 PM
  7. Find first cell in column containg A number
    By jgh99x in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-15-2009, 01:07 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