+ Reply to Thread
Results 1 to 4 of 4

Sorting left tor right in groups of 3 columns based on the total of one column in each...

  1. #1
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Sorting left tor right in groups of 3 columns based on the total of one column in each...

    Hey,

    I'm trying to sort groups of data (columns of 3 = a group) based on the highest totals from the middle column of each group however I have no idea where to start and how to do it.

    For a screenshot please click the following link \1 or use the attached image

    It's easiest to show in the excel spreadsheet so, please see the attachment below.

    Any help would be much appreciated.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,286

    Re: Sorting left tor right in groups of 3 columns based on the total of one column in each

    In cell E15, enter the formula
    =SUM(D14:F14)+0.1/COLUMN()
    and copy to F15:S15, then select E3:S15 and sort horizontally, descending, based on row 15.
    Last edited by Bernie Deitrick; 07-11-2014 at 02:49 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Sorting left tor right in groups of 3 columns based on the total of one column in each

    Quote Originally Posted by Bernie Deitrick View Post
    In cell E15, enter the formula
    =SUM(D14:F14)+COLUMN()/100
    and copy to F15:S15, then select E3:S15 and sort horizontally, descending, based on row 15.
    The totals are only there to show what it's supposed to achieve, I don't have that in my real data and I don't want to input data into any cells, it's all got to be done in vba :/

    To show I tried, I did the following:

    Please Login or Register  to view this content.
    But sorting it failed misserably, it just put all the "TOP" columns to the left, didn't keep them in "groups"
    Last edited by Hyflex; 07-11-2014 at 03:21 PM.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,286

    Re: Sorting left tor right in groups of 3 columns based on the total of one column in each

    Try
    Please Login or Register  to view this content.

+ 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. Autopopulate multiple columns based on dropdown selection in far left column
    By tinaascoggins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-02-2014, 12:29 PM
  2. [SOLVED] Macro to Insert two columns to the left of a moving total column
    By Jmoreau in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2013, 11:23 AM
  3. [SOLVED] Enter text in column a based on data in several other columns for groups of rows
    By mrswain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2012, 03:29 PM
  4. Replies: 1
    Last Post: 03-13-2012, 10:55 PM
  5. Sorting groups of columns to a related group of columns
    By fuadramsey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-15-2007, 07:56 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