+ Reply to Thread
Results 1 to 11 of 11

Filter by top Value in Column

  1. #1
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Filter by top Value in Column

    Hi Guys, have a coding problem
    I would like to filter Max Value in a group sorted by 2 columns
    I have attached a small sheet with explanations
    T sort order is in Cols A:B
    Max value in col C
    Thanks you in anticipation for your help
    Regards
    Graham
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Filter by top Value in Column

    I don't understand.

    Is your example the input data or the output?

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Filter by top Value in Column

    Hello Graham,

    This macro will sort the data in ascending oreder using columns "A:B" and then filter the results using the highest value in column "D". The attached workbook has the macro attached to button on "Sheet1".

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Filter by top Value in Column

    Thanks Leith for your help, actually I probable did not explain correctly.
    It must filter Max Value for each track and race No
    So there will be a filtered number in D col for each track and race
    Regards
    Graham
    The macro works file to filter only 1 (One) number

  5. #5
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Filter by top Value in Column

    My Data is input and it must filter one number in D col for each track and race No
    Regards
    Graham

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Filter by top Value in Column

    Maybe add to your sample what you want to see as an output for that input.

    Mock-up your expected result.

  7. #7
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Filter by top Value in Column

    Now posted revised data
    Regards
    Graham
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Filter by top Value in Column

    try
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Filter by top Value in Column

    Jindon that only returned I row
    I better make this clearer....

    I need a macro that will find the Max unique values that are filtered in Col G on sheet1 and copy all the data pertaining to the unique Max values in Col G to sheet 2 for eg if the top value in Col G are in rows 3, 10, 26, then copy the data from the other columns as well that are in the these rows


    I have highlighted the Max unique values in Col G
    Also included New Worksheet


    It would be appreciated if someone would be able to assist me with my request
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Filter by top Value in Column

    If you can not adjust the given code, don't make any excuse.
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Filter by top Value in Column

    Thanks Jindon for your Help and Patience, works perfectly as u knew it would.
    Very appreciative indeed
    Regards
    Graham Feeley

+ 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. VBA Advanced Filter - Two Filters Without Deleting Bottom Filter Data In Same Column Range
    By hysterical.useless in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2017, 02:54 PM
  2. Undo a filter on a particular column, leaving the filter on another column
    By MissDB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2017, 11:50 AM
  3. Replies: 1
    Last Post: 12-12-2014, 06:46 AM
  4. Replies: 6
    Last Post: 10-16-2014, 08:42 AM
  5. Replies: 0
    Last Post: 01-16-2014, 10:55 AM
  6. Replies: 9
    Last Post: 01-04-2013, 09:56 AM
  7. How do I transfer User-Defined filter parameters to then filter another column?
    By fiqulupo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2012, 07:05 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