+ Reply to Thread
Results 1 to 14 of 14

Macro to group autofilter up to 8 rows

  1. #1
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Macro to group autofilter up to 8 rows

    I am trying to sort 8 rows of data and extract it from 500,000 rows. This is one example of 8 rows that I would want to sort


    Example of Counter Locations.jpg


    You will notice that it has a game number in "column 1", location in column six 6, and 4 four numbers in columns 2-3-4-5 that we will call counter numbers. When I run the filters I want to be able to find a group of the numbers that look like that above. How can I set up a MACRO to find similar groups of numbers like this?
    .
    Patterns rows 1-8.jpg

    I have tried to get help from another forum without much success http//:ozgrid.com/forum/showthread.php?t173361andgoto=post
    Last edited by Larbec; 11-26-2013 at 02:55 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to group autofilter up to 8 rows

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    Here is a short video of kinda what I want to do

    http://youtu.be/ipjzHGXuAY8

  4. #4
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    Here is a sample worksheet with the exception on the sheet it will find one counter number (4 digit number) st s time. I want to find all of them as a group of numbers from one location. They actually form a pattern when form the one location
    Attached Files Attached Files

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to group autofilter up to 8 rows

    Hi Larbec,
    try this (with helper columns)
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    man, I almost wanna hug ya LOL, This is looking fantastic, What I need to change if possible is when I click to search, I do not want to mix locations. The number/patterns needs to come from the same location(s) If there are not enough numbers to complete the pattern(s) thats okay, just let it display what it can...does that make sense? Maybe I can do a short video

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to group autofilter up to 8 rows

    may be a small example file

  8. #8
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    https://www.dropbox.com/s/fspwyhe7sx...r%20MACRO.xlsm



    The file is too large to post and when I shrink it, its useless lol. I am using drop box. Feel free to change whatever you want with it as I have the original plus it does not do what I need it to do. Maybe you can make some changes and I can re download it. I have to get at least an hour sleep as I get up in 2 hours to go to work LOL BUT, I need to finish this too as its driving me crazy and this will save me a lot of time.... A LOT of time. I will not keep this up long but ling enough for you to do what you need to

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to group autofilter up to 8 rows

    Still not entirely clear.
    If you need the data only in one location, what location you are interested?
    Show the desired result in a small example.

  10. #10
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    It is like you read my mind nilem. I made a few changes to your sheet. If we could incorporate your sheet with mine it would be perfect. Let me know if this makes sense to you?
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    I finally uploaded the video. I noticed that the location number is different in the video. they have to be the same. When I did this quickly I did not copy and paste. Instead I dragged it down making it count 1,2,3,4,5,6, LOL sry if there is any confusion on that part. The rest of the video is what I am looking for.


    https://www.youtube.com/watch?v=ZuzYCKSWv9M

  12. #12
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to group autofilter up to 8 rows

    In your file example I saw the result, which is returned by the macro.
    But show a result that you need

  13. #13
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    I'm not sure I understand what you mean? Guess I will see. do what you think needs to happen and i will take a look at it Thank You!!!
    Last edited by Larbec; 11-26-2013 at 08:23 AM.

  14. #14
    Forum Contributor
    Join Date
    03-31-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to group autofilter up to 8 rows

    Have you had an opportunity to do any more work on this?

+ 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] Macro to group and un group rows?
    By gjjh25 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2013, 05:13 PM
  2. Macro to group rows with certain subtotal
    By erosche in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-27-2011, 12:43 PM
  3. Group rows Macro?
    By BillXT in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-14-2008, 11:24 AM
  4. Doubt in macro..try to group rows
    By charles.2345 in forum Excel General
    Replies: 14
    Last Post: 07-15-2008, 11:23 AM
  5. Macro to group, insert rows & Sum
    By ShaneBell in forum Excel General
    Replies: 0
    Last Post: 10-02-2006, 02:48 PM

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