Results 1 to 9 of 9

Help! Script that filters excel data

Threaded View

  1. #1
    Registered User
    Join Date
    07-26-2014
    Location
    Stockholm, Sweden
    MS-Off Ver
    2010
    Posts
    6

    Red face Help! Script that filters excel data

    Hi
    I´m working with my master thesis in Mathcad and the last step is to export about 1 million values to excel
    I want to filter those values and choose the highest value with certain requirements.
    To make it easier, i will just ask for a small macro that i can later develop and work with on my own.

    I want a macro that
    1. Sort the result with this order no matter how many rows the set of data is
    first order: Cell A3 to A(end) A to Z
    Second order: Cell B3 to B(end) A to Z
    Third order: Cell C3 to C(end) lowest to highest
    Fourth order: Cell D3 to D(end) highest to lowest

    2. After the filtering the result in the same sheet on the same columns and rows.
    I want to take out the row with the highest value in column D for each unique set data in column A, B and C
    and print those on another sheet named "sheet2"

    So in this example i start with this:
    pic1.png
    And want to end up with this sorted Data:
    pic2.png
    And with those result on sheet named "sheet2"
    pic3.png

    the whole idea with the sorting the data first is not to loop through all 500 000 rows but just to loop until column A, B or C is changed and then proceed to take out the next value from the following rows. (if the sorting is done properly it means the first unique row with respect to column A, B and C)

    Who ever helps me get a honorable mention on my master thesis in the introduction
    and a small donation to a charity like the Red Cross, value 20 dollars to honor you
    my file found herehelpme.xlsx

    I want it as a macro button just to click and perform the above.
    Thank you
    Last edited by Jafori; 07-26-2014 at 07:45 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. script to run the macro from Vb script with out opening the excel file
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2021, 03:33 AM
  2. Using filters, and then unselecting filters. Organizing data.
    By lesoies in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-09-2013, 07:55 AM
  3. Integrating Mainframe emulator script with excel's vba script
    By Himanshu Mishra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2012, 10:30 AM
  4. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  5. Excel Data Filters
    By Michael-Roanoke, VA in forum Excel General
    Replies: 1
    Last Post: 03-15-2005, 05:06 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