+ Reply to Thread
Results 1 to 2 of 2

Sort column in alternating manner

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    1

    Sort column in alternating manner

    Hello all, I can't seem to figure this one out and google strangely can't answer my questions (have also tried searching these forums). Perhaps I am not asking the right way, but I am lost.

    I have sets of data... like so:

    A word text blablabla
    B word text blablabla
    A dog cat france
    B dog cat france
    B this that other
    A this that other
    A tiger dragon monkey
    B tiger dragon monkey

    My source data I can't get to sort alternating on columns A and B, and I would like the data to alternate A-B-A-B-A-B while retaining the pairings of data in the adjacent fields. Is this possible?

  2. #2
    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: Sort column in alternating manner

    Helper column?

    A
    B
    C
    D
    1
    Hdr
    Hdr
    Helper
    2
    A word text blablabla
    1
    C2: =COUNTIF(A$1:A2, A2) + (A2="B")/10
    3
    B word text blablabla
    1.1
    4
    A dog cat france
    2
    5
    B dog cat france
    2.1
    6
    B this that other
    3.1
    7
    A this that other
    3
    8
    A tiger dragon monkey
    4
    9
    B tiger dragon monkey
    4.1


    Sort on that.
    Entia non sunt multiplicanda sine necessitate

+ 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: 7
    Last Post: 08-04-2017, 05:49 PM
  2. Replies: 2
    Last Post: 03-23-2013, 11:53 AM
  3. Sort rows and color alternating rows using VB
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-12-2010, 10:10 AM
  4. Replies: 3
    Last Post: 04-28-2005, 05:06 PM
  5. Replies: 0
    Last Post: 04-27-2005, 05:06 PM

Tags for this Thread

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