+ Reply to Thread
Results 1 to 2 of 2

How can I sort 3 columns - Sort column A then sort column B then lastly group column C dup

Hybrid View

  1. #1
    Registered User
    Join Date
    03-29-2018
    Location
    Singapore
    MS-Off Ver
    9
    Posts
    60

    How can I sort 3 columns - Sort column A then sort column B then lastly group column C dup

    Anyone can help? I have attached an excel table of what i mean
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: How can I sort 3 columns - Sort column A then sort column B then lastly group column C

    Hi, with 2 helper columns you can achieve the first 2 points, but the last one regarding the address is difficult to achieve for be because the the Delivery company will not be sorted alphabetically. Apply the following formulas and see if is good enough:
    D2:
    =A2&C2&B2
    F2:
    =INDEX($D$2:$D$14, MATCH(SMALL(COUNTIF($D$2:$D$14, "<"&$D$2:$D$14), ROW(1:1)), COUNTIF($D$2:$D$14, "<"&$D$2:$D$14), 0))
    F2 formula is array

    G2, array entered:
    =INDEX($A$2:$A$14, MATCH(SMALL(COUNTIF($D$2:$D$14, "<"&$D$2:$D$14), ROW(1:1)), COUNTIF($D$2:$D$14, "<"&$D$2:$D$14), 0))
    H2:
    =INDEX($B$2:$B$14,MATCH($F2,$D$2:$D$14,0))
    E2:
    =IF(LEFT(F2,2)<>LEFT(F1,2),INDEX($C$2:$C$14,MATCH(F2,$D$2:$D$14,0)),"")
    or
    =INDEX($C$2:$C$14,MATCH(F2,$D$2:$D$14,0)),"")
    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. Replies: 5
    Last Post: 05-09-2017, 08:48 AM
  2. Need to Sort Column Data - Horizontal Sort Not Working
    By Jadd in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-01-2016, 07:09 PM
  3. Replies: 1
    Last Post: 03-04-2015, 02:57 PM
  4. [SOLVED] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  5. Replies: 2
    Last Post: 01-15-2014, 09:31 AM
  6. Replies: 5
    Last Post: 04-25-2013, 11:50 PM
  7. Replies: 3
    Last Post: 05-17-2009, 04:31 AM

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