+ Reply to Thread
Results 1 to 7 of 7

How to groupe a column according to special values

  1. #1
    Registered User
    Join Date
    06-22-2014
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    14

    How to groupe a column according to special values

    Hello everyone,

    I would like to grouping A column values according to *_1.jpg *_2.jpg *_3.jpg *_4.jpg *_5.jpg column by cloumn as in the pic.

    Could anyone help me how to make this with a macro ?

    Thank you all.

    Asdfsdfdsız.png

  2. #2
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: How to groupe a column according to special values

    Using your posted sample, try the following code:

    Please Login or Register  to view this content.
    Will there ever be an instance where the second number will not reset to 1?

    1_1.jpg
    2_2.jpg
    3_2.jpg
    4_3.jpg
    5_4'jpg

    Maud

  3. #3
    Registered User
    Join Date
    06-22-2014
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    14

    Re: How to groupe a column according to special values

    Thank you for your quick reply Maud

    No, There will always be _1.jpg suffix starting in order. Working great. Once again appreciated your help.

  4. #4
    Registered User
    Join Date
    06-22-2014
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    14

    Re: How to groupe a column according to special values

    Actually, It gives "Subscript out of range" error when there are 50 values in A column. How to make that range about 30K ?

  5. #5
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: How to groupe a column according to special values

    Breeze,

    I recreated the workbook with 100 lines, ran the code, and found no errors. I suspect you may have inadvertently added a value that did not have a "_" or a "." characters. I revised the code to have error checking and to notify you where the error is located. It should handle as many lines as your version of Excel could support as well as columns for the sequential second number
    Please Login or Register  to view this content.
    HTH,
    Maud
    Attached Files Attached Files
    Last edited by Maudibe; 02-12-2017 at 01:40 PM. Reason: added file

  6. #6
    Registered User
    Join Date
    06-22-2014
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    14

    Re: How to groupe a column according to special values

    It's working perfectly Maud Your a star, thank you so much

  7. #7
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: How to groupe a column according to special values

    Thanks for the rep points!

+ 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. column E copy/paste special values
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2015, 06:03 PM
  2. Replies: 2
    Last Post: 03-18-2015, 05:31 AM
  3. Creating an Special Key Column for Cells with Identical Values
    By walle786 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2013, 02:42 AM
  4. retirer groupe de mot d'une cellule
    By 11help11 in forum Non English Excel
    Replies: 6
    Last Post: 08-17-2012, 11:52 AM
  5. Find * Column A and Paste Special Values
    By Racer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2010, 07:28 PM
  6. Paste Special Values but keep formatting and column widths
    By drdavidge in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2006, 01:00 PM
  7. Date/time groupe
    By Johan H. Olsen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-15-2005, 07:07 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