+ Reply to Thread
Results 1 to 3 of 3

Custom Order Sort with Comma(,) as Criteria

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Custom Order Sort with Comma(,) as Criteria

    Hi,

    I need a custom order sort and it work fine if the criteria to be sorted does not contains comma (,)
    Please Login or Register  to view this content.
    However, when I have the following criteria, it does not work. This is because comma is used to segregate between these criteria. can anyone help me?
    BC, HEAD
    Head, Biz Dev.
    Deputy Head
    SBDM
    SRM
    BDM
    Last edited by Faridwahidi; 06-30-2015 at 12:55 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Custom Order Sort with Comma(,) as Criteria

    You could temporarily replace the commas in the data with bars |
    Then sort on the criteria that also has Bars | instead of commas
    Then restore the commas in the data after the sort.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 06-30-2015 at 02:50 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Custom Order Sort with Comma(,) as Criteria

    Hi Alpha Frog,

    Thanks A lot

+ 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. [SOLVED] custom sort list order in vba
    By sarksloane in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-20-2014, 09:45 AM
  2. Custom sort order
    By 4lowie in forum Excel General
    Replies: 14
    Last Post: 03-09-2014, 11:08 AM
  3. [SOLVED] Custom Sort Order for Sheets
    By Comisar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2013, 02:10 PM
  4. VBA Custom Sort Order Issues
    By Warderbrad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2012, 04:38 PM
  5. Custom sort order problem
    By mfmcclellan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2012, 05:05 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