+ Reply to Thread
Results 1 to 3 of 3

Sorting Data and Grouping

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    Seychelles
    MS-Off Ver
    Excel 2007
    Posts
    9

    Sorting Data and Grouping

    Dear Excel Community

    Could someone kindly assist in modifying the macro slightly.

    Currently it is sorting by Var. column F by highest to lowest - that is correct

    However, if you see in column A we have Germany and France mixed.

    I would like all Germany Grouped and also France etc. but with both sorted by column F highest to lowest.

    I have tried a few things but cannot get this to work.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Sorting Data and Grouping

    You might need to insert a help column. Insert a new column and use this formula to extract country =RIGHT(A3,LEN(A3)-FIND(" ",A3,5)+1). Then sort by Country then variance.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Sorting Data and Grouping

    Change this section of the VBA

    Please Login or Register  to view this content.
    You need to have two keys to sort on. First to group the countries and then to group the variances.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Grouping and Sorting Data into Sub sections
    By Impartial Derivative in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2011, 12:20 PM
  2. Data Sorting/Grouping Function
    By Blake 7 in forum Excel General
    Replies: 0
    Last Post: 10-19-2010, 02:50 PM
  3. Replies: 3
    Last Post: 08-08-2009, 05:05 AM
  4. Grouping and sorting data
    By coffee_n_tv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2008, 06:44 PM
  5. grouping and sorting data
    By mb7q in forum Excel General
    Replies: 0
    Last Post: 03-30-2006, 03:35 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