+ Reply to Thread
Results 1 to 5 of 5

Need help on sorting locations with specific zoning criteria

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007/2010/365
    Posts
    82

    Need help on sorting locations with specific zoning criteria

    Dear EXCEL experts,

    I need help to brain stomp on how can I do a sort for the locations on Column A in the attached workbook, based on 2 special criteria.

    My location reads like this:

    XX(Can ignore) - x(Can ignore) Zone Range 2 - x - xxx (zone range 1)

    Sample: 04-1A-1-025

    I had manually done a sample sorted result on column I, based on Zone Range 2, A and B, followed by Zone Range 1.

    The sort needs to be sorted by 1) Zone Range A and B, 1) Zone Range 1

    then 2) Zone Range B and C, 2) Zone Range 1

    then 3) Zone Range C and D, 3) Zone Range 1 and so on so forth.

    A million thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Need help on sorting locations with specific zoning criteria

    My first proposition was: in B1 formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied all the way down and used for sorting.

    so first Zone Range A and B and Zone Range 1
    then Zone Range C and D and Zone Range 1 or Zone Range A and B and Zone Range 2 or Zone Range C and D and Zone Range 1
    As I thought it is yur idea from the description.


    But then realized that what you've shown in manual result is:

    Zone Range A and B with all Zone Range 1 ... nnn in ascending order,
    Zone Range C and D with all Zone Range 1 ... nnn in ascending order,
    ...
    for such sequence use in B1 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and sort your data on based on this formula
    Last edited by Kaper; 11-05-2020 at 05:39 AM.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007/2010/365
    Posts
    82

    Re: Need help on sorting locations with specific zoning criteria

    Dear Kaper,

    Thank you for your effort but the result is not what I need. I think I should post this into the vba group as I think I need to use vba to copy and paste the result into a new worksheet as other then column A, I need the data in column B, C, D to sort according to column A too.

    I will mark this thread as solved.

    Thank you.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Need help on sorting locations with specific zoning criteria

    If you have your location data in column A and columns B:D with other data then write the formula (I expect the second one above fits your needs better) in column E (cell E1 and copy down) and sort range A:E on column E ascending.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Need help on sorting locations with specific zoning criteria

    Please try at B2

    =INDEX(A:A,MOD(AGGREGATE(15,6,INT((CODE(MID($A$1:$A$629,5,1))-1)/2)*10^8+RIGHT($A$1:$A$629,3)*10^4+ROW($A$1:$A$629),ROWS(B$1:B1)),10^4))
    Attached Files Attached Files

+ 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] Totals based on specific criteria and multiple locations
    By araymc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2020, 03:07 PM
  2. Take versioning information and create a zoning chart
    By jshivar in forum Excel General
    Replies: 2
    Last Post: 02-03-2016, 11:35 AM
  3. Sorting locations
    By Rysis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2015, 12:16 PM
  4. Need help with a macro to add & remove rows in specific locations
    By thesteve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2015, 11:06 AM
  5. Sorting and Delete rows meeting criteria based on sorting criteria
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2011, 02:40 PM
  6. Zoning Program
    By cdsanche32 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-18-2011, 08:29 PM
  7. Finding Specific Data Random Locations
    By Kevin Pyne in forum Excel General
    Replies: 1
    Last Post: 03-10-2007, 01:54 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