+ Reply to Thread
Results 1 to 24 of 24

Customized sorting

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Customized sorting

    Hello,
    in my book i have two areas and for each import to be made, i will have to filter the data in the order of the words in column c.
    My list with different options as filter is bigger from 422 characters and i can not make it.
    Have anyone any idea how it can be done?
    Attached Files Attached Files
    Last edited by Immortal2014; 08-17-2017 at 12:44 PM.
    Nick

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filtering

    Have you tried the following?

    Select C7:F25 > Data > Sort > Sort by: Column C > OK
    Select C33:F75 > Data > Sort > Sort by: Column C > OK

  3. #3
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Filtering

    You obviously did not understand how the alphabet I have as a list, I have it as an example.
    The words that will be in the column C will have a sorting order, my own, no relation to the alphabetical order of the letters.
    I'm trying to find out how to define my own order of sorting in these words.
    Thanks for your time 63falcondude.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Definition of a sort order

    you mean like this?

    you said: all A's, B's, or other letters hasn’t the same town, phone and hight, so all data must follow the town.

    pts.jpg

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Definition of a sort order

    The steps from post #2 makes the data in the "What i have" worksheet look identical to the output in the "What i need" worksheet.

    Perhaps you should create a sample that better represents your actual data and what it is that you are looking for.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Definition of a sort order

    Quote Originally Posted by 63falcondude View Post
    Perhaps you should create a sample that better represents your actual data and what it is that you are looking for.
    I totally agree

  7. #7
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Definition of a sort order

    Ok i will have it ready in a while, thanks.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Definition of a sort order

    if you do what I think it should be you can use PivotTable for each area

  9. #9
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Definition of a sort order

    the new book is ready with an example.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Definition of a sort order

    is that what you want?
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Definition of a sort order

    Thanks for your help but i think that is not working as i need. i insert 2 more people but it nothing happening to your area.

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Definition of a sort order

    So you don't know how PivotTable works

    try this one
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Definition of a sort order

    Im not a familiar with pivot tables and i dont have an idea with this.
    So the first question is, why some letters are not showing?



    Thw second question is, A B C will be replace with other content and the other content will not be in alphabetical order. how can i have it in the order that i want?
    Thanks
    Attached Images Attached Images

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Definition of a sort order

    first: click on PivotTable, go to menu PivotTable tools - Design - Report layout - Repeat all item lables

    second: should be in ABC order (because of the first letter)

    learn about PivotTable more here: Create a PivotTable to analyze worksheet data or look for more courses/lessons/videos on the net. Google is your friend

  15. #15
    Registered User
    Join Date
    08-17-2017
    Location
    dallas, USA
    MS-Off Ver
    2003
    Posts
    1

    Re: Definition of a sort order

    Well, u had nice skills in excel as i see, thanks for your tips was usefull for mee too!! having health issues is annoying. lots of money is spend on rx costs and not left enough to study. thanks to this site i can do both. thanks.
    Last edited by Cappire; 08-31-2017 at 12:51 PM.

  16. #16
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Definition of a sort order

    Woh, then i think that is not for my book. I need to have my own order to 35 different words.
    Anyway, thanks all of you very much for your time.

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Definition of a sort order

    You can sort PivotTable as you wish. Manually also...

    but if you think this is too hard for you that's ok.

    I give up

    have a luck

  18. #18
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Customized sorting

    Hello people i believe you are well!
    I will make a second attempt to explain what I need.
    I have all the details in the book, with an example.
    If anyone can help me, I will be grateful to him.
    Thanks in advance
    Attached Files Attached Files

  19. #19
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Customized sorting

    Click on Office Button Left side corner of excel
    > Excel Options > Popular > Edit Customer List > Import (Click the Button besides Import) > Select the Cities list from your excel sheet > Import > Add > OK > OK

    Then select the data you want to sort > Sort > Order > CustomeList > Select cities from Customs list
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  20. #20
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Definition of a sort order

    Thanks for your help but is showing again alphabetically. I dont know whats going wrong.

  21. #21
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Customized sorting

    I find a way and i record the macro that i need.
    In second line im trying to add "ActiveSheet Unprotect ="my password"" and in the end to protect again, but i take a message for word "hidden". It doesnt complete the macro. What im doing wrong?
    Sub SetSordingOrders()
        Application.ScreenUpdating = False
        Range("C6:F6").Select
        Selection.AutoFilter
        Range("C6").Select
        ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort.SortFields.Clear
        ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort.SortFields.Add Key:= _
            Range("C7:C31"), SortOn:=xlSortOnValues, Order:=xlAscending, CustomOrder _
            := _
            "my criteria" _
            , DataOption:=xlSortNormal
        ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort.SortFields.Add Key:= _
            Range("D7:D31"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
            xlSortNormal
        With ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort
            .Header = xlYes
            .MatchCase = False
            .Orientation = xlTopToBottom
            .SortMethod = xlPinYin
            .Apply
        End With
        ActiveWindow.SmallScroll Down:=-27
        Range("C6:F6").Select
        Selection.AutoFilter
        ActiveWindow.SmallScroll Down:=21
        Range("C32:F32").Select
        Selection.AutoFilter
        Range("C32").Select
        ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort.SortFields.Clear
        ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort.SortFields.Add Key:= _
            Range("C33:C75"), SortOn:=xlSortOnValues, Order:=xlAscending, CustomOrder _
            := _
            "my criteria" _
            , DataOption:=xlSortNormal
        ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort.SortFields.Add Key:= _
            Range("D33:D75"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption _
            :=xlSortNormal
        With ActiveWorkbook.Worksheets("Sheet1").AutoFilter.Sort
            .Header = xlYes
            .MatchCase = False
            .Orientation = xlTopToBottom
            .SortMethod = xlPinYin
            .Apply
        End With
        Range("C32:F32").Select
        Selection.AutoFilter
    For Each cell In ActiveSheet.Range("D7:D31, D33:D75, D77")
    If cell.Value = "" Then
    cell.EntireRow.Hidden = True
    Else: cell.EntireRow.Hidden = False
    End If
    Next
        Range("C6").Select
        Application.ScreenUpdating = True
    End Sub
    Last edited by Immortal2014; 08-19-2017 at 03:39 PM.

  22. #22
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Customized sorting

    Did you try the suggestion in post #19?
    Entia non sunt multiplicanda sine necessitate

  23. #23
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Customized sorting

    Yes i try it, i record this on a macro for two areas. It was difficult to have it only with filter because i have three rows with empty cells, and the second row with empty cells doesnt let other rows until down filtering as i want.

  24. #24
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: Customized sorting

    I found my fault, it was "=" and it doesnt let me to continue.

+ 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] When sorting data the customized series colors don't sort
    By Rhene in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-05-2017, 08:26 AM
  2. Customized sorting
    By Immortal2014 in forum Excel General
    Replies: 1
    Last Post: 08-19-2017, 08:26 AM
  3. [SOLVED] Customized sum
    By kk_usa in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-26-2014, 03:25 AM
  4. Add Customized MsgBox
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2012, 04:43 PM
  5. Customized toolbars
    By bgn2 in forum Excel General
    Replies: 0
    Last Post: 05-14-2008, 11:50 AM
  6. How do you keep your toolbar customized the way you set it up?
    By alitanna in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-19-2006, 03:25 AM
  7. [SOLVED] Customized components
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2005, 07: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