+ Reply to Thread
Results 1 to 5 of 5

Complex replicate co-sorting of 2 columns

  1. #1
    Registered User
    Join Date
    06-10-2011
    Location
    new york
    MS-Off Ver
    Excel 2010
    Posts
    12

    Complex replicate co-sorting of 2 columns

    First time posting here. I couldn't find a solution to accomodate my request - please help!

    I have a long list (~1000) rows of data stored in two columns (say, A1 and A2). A1 contains a title (of which there are 7 unique titles) and A2 contains one word text derived from that title. The data is sorted alphabetically by the "one word text derivations" (column A2), and A1 is cosorted. There are duplicates/triplicates...7-plicates of the "one word text derivations" in column A2.

    I need to somehow count how many "---plicates" there are of the "one word text derivations" in column A2 and, in an adjacent cell, write the "title" 's that correspond to the "one word text derivation" row.

    For example,
    Titles(a,b,c,d,e,f,g)
    One-word-text-derivations(cake,mouse)

    A1 A2
    a cake
    b cake
    c cake
    d cake
    e cake
    f cake
    g cake
    c mouse
    g mouse

    I need in an adjacent column, to have the result of how many times "cake" and "mouse" is replicated and the corresponding title ("a,b,c,d,e,f,g").

    Result:

    One-word text derivation Times Replicated Tittle
    cake 7 a,b,c,d,e,f,g
    mouse 2 c,g
    .
    .
    .
    .
    .
    .
    etc

    Thank you!
    Last edited by stonegwene; 06-12-2011 at 01:53 AM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Complex replicate co-sorting of 2 columns

    Hi stonegwene, it would probably be best if you upload a mock workbook containing some data and your desired outcome.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Complex replicate co-sorting of 2 columns

    Hi stonegwene,
    welcome to the forum

    You could use a loop

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Registered User
    Join Date
    06-10-2011
    Location
    new york
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Complex replicate co-sorting of 2 columns

    Thank you - the script worked perfectly !

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Complex replicate co-sorting of 2 columns

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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