+ Reply to Thread
Results 1 to 6 of 6

Sorting similar entries from one column, into respective rows

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sorting similar entries from one column, into respective rows

    Hey so I posted this question a few hours ago, but somehow I managed to mark it as solved and it got 0 replies. Sorry if I messed something up!

    I have a very large spreadsheet with data formatted like this: http://prntscr.com/1nkcu9

    I want to take all the entries that are similar (only different by numbering) and put them on the same row, like this: http://prntscr.com/1nkgid
    but I can't find any guides that explain how to do anything similar to this. I'm not great at VBA and I haven't been able to figure out any way to do it using regular formulas because there are different numbers of URLs for each grouping and I'm not sure how to iterate it properly.

    I actually posted this question before (on the excel subreddit) and I got some useful looking, but non functional, VBA, and the guy never responded to my follow up.

    Any advice is much appreciated!

    Here's the VBA I have btw:

    Please Login or Register  to view this content.
    Here's what my data actually looks like:

    10dollarwholesale.org/Product%20Images/1-DAY%20PILL%20REMINDER.JPG
    10dollarwholesale.org/Product%20Images/1-DAY%20PILL%20REMINDER_1.JPG
    10dollarwholesale.org/Product%20Images/1-DAY%20PILL%20REMINDER_2.JPG
    10dollarwholesale.org/Product%20Images/2PK%20MOUSE%20TRAPS.JPG
    10dollarwholesale.org/Product%20Images/2PK%20MOUSE%20TRAPS_1.JPG
    10dollarwholesale.org/Product%20Images/2PK%20MOUSE%20TRAPS_2.JPG
    10dollarwholesale.org/Product%20Images/2PK%20MOUSE%20TRAPS_3.JPG
    10dollarwholesale.org/Product%20Images/2TSP.%20ORAL%20SYRINGE.JPG
    10dollarwholesale.org/Product%20Images/2TSP.%20ORAL%20SYRINGE_1.JPG
    10dollarwholesale.org/Product%20Images/2TSP.%20ORAL%20SYRINGE_2.JPG
    10dollarwholesale.org/Product%20Images/3IN1%20TRAVEL%20CRKSCRW.JPG
    10dollarwholesale.org/Product%20Images/3IN1%20TRAVEL%20CRKSCRW_1.JPG
    10dollarwholesale.org/Product%20Images/3IN1%20TRAVEL%20CRKSCRW_2.JPG
    10dollarwholesale.org/Product%20Images/3IN1%20TRAVEL%20CRKSCRW_3.JPG
    10dollarwholesale.org/Product%20Images/3IN1%20TRAVEL%20CRKSCRW_4.JPG

    And here's essentially what I want to do:

    A1
    A2
    A3
    A4
    B1
    B2
    C1
    C2
    C3
    D1
    D2
    E1
    E2
    E3
    E4
    E5

    A1 A2 A3 A4
    B1 B2
    C1 C2 C3
    D1 D2
    E1 E2 E3 E4 E5
    Attached Files Attached Files
    Last edited by Captain Awol; 08-26-2013 at 05:22 PM. Reason: Added more data

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Sorting similar entries from one column, into respective rows

    Hi and welcome to the forum,
    Can't see the images you posted...
    It would be easier if you could put a sample workbook with few lines with current / expected results.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sorting similar entries from one column, into respective rows

    Hey, thanks for the reply. I just added data too my post as well as attaching the spreadsheet, I hope that's more clear.

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Sorting similar entries from one column, into respective rows

    Hi,
    Here's a code to try. Results will be copy in the 3rd sheet. Adapt as required.
    You may have some exceptions not captured by the macro.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sorting similar entries from one column, into respective rows

    Holy Cow, that is exactly what I needed and it works perfectly! Thank you so much that makes my life 1000x easier! You're the best GC Excel!!

    PS I know a bit of VBA and I can't figure out how this works at all, if you want to take a second to explain it that would be awesome, if not, no worries!!

    Thanks Again!

  6. #6
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Sorting similar entries from one column, into respective rows

    Hi,
    I've added some comments to the code for your understanding :
    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. [SOLVED] VBA macro that hide and unhide column to respective rows based on first column value
    By janine6192 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2013, 06:21 PM
  2. [SOLVED] Sorting rows of data based off a single column for a variable number of entries.
    By soxcrates in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 12:31 PM
  3. Sorting number of days into each respective months
    By bobchenc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2010, 11:56 AM
  4. Default Track all the changes of all the columns in respective rows of column A
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2010, 06:29 AM

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