+ Reply to Thread
Results 1 to 6 of 6

find and extract row based on column max value

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    3

    find and extract row based on column max value

    My goal is to extract all rows that have the latest period in column D (Period).

    Column D show period like year.month (201307)

    I know I can use filter, but I want to try another way so I can record the macro that I can use every month.

    Because if I use filter and choose the latest period, then I will not be able to use the macro next month, that is 201308.

    I tried to upload a file to the file upload manager did not find my computer.
    Thank you

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    Makati
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: find and extract row based on column max value

    Hi, Are you familiar with advance filter?

    If yes then u can try to record the advance filter , so next time u only need to change the value in the criteria and run the macro..

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: find and extract row based on column max value

    Yes I use advanced filter all the time.

    But if I have to change the criteria everytime the point of using macro is gone.

    Now I have to use advanced filter, copy the resultat and then proceed with macro I have recorded.

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: find and extract row based on column max value

    Your notation of YearMonth makes it possible to search for the maximum value, which corresponds to the latest date. So use the MAX formula and then the LOOKUP formula to extract the rows with that value.
    When I say semicolon, u say comma!

  5. #5
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: find and extract row based on column max value

    Is it something like this you are after?

    Input your period in E1

    Period extract.xlsx
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: find and extract row based on column max value

    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] Extract from list in column A based on cell value in column B
    By newbie-excel in forum Excel General
    Replies: 2
    Last Post: 07-15-2013, 09:02 AM
  2. [SOLVED] Extract Value based on Row and Column
    By HangMan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-24-2013, 11:34 AM
  3. Replies: 3
    Last Post: 02-14-2013, 10:25 AM
  4. Find and extract text in a column of blank Cells
    By corinereyes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2012, 05:18 AM
  5. Find a value in a column and extract the coresponding value
    By N-ter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-25-2010, 11:29 AM

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