+ Reply to Thread
Results 1 to 3 of 3

How to grab the value of the first cell of a table after applying a filter.

Hybrid View

  1. #1
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    48

    Question How to grab the value of the first cell of a table after applying a filter.

    Hey all,
    Hope you got what i want from the title.
    I have a table, and then i'm applying a filter, and i need to display the first value of the filtered data from a specific column.

    Please check the file attached ... i need the cell C5 to display the first value of the filtered date.

    Is that possible ?


    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to grab the value of the first cell of a table after applying a filter.

    with helper column for auto numeration visible rows
    =INDEX($C$8:$C$18,MATCH(1,$B$8:$B$18))
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: How to grab the value of the first cell of a table after applying a filter.

    In your sample the dates are in order from most recent to furthest past, will they be in order in your actual file?

    If so, you can use SUBTOTAL with 104 (MAX) or 105 (MIN) if they are in order. SUBTOTAL with the first argument being 100+ works on the visible cells in a range only, thus not your filtered values.

    So if you have your dates sorted, MAX of your filtered list would always be the first cell if you have most recent date at top, or MIN if you have least recent date at top.

    In C5
    Formula: copy to clipboard
    =SUBTOTAL(104,Table1[DATE])


    Then filter some more recent dates out and see results. If you have oldest date at top of list then use 105 instead.

    If your list wont be sorted by date we can find another option
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

+ 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. Applying a filter to a PivotTable based on a cell
    By seanpcorbett1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-15-2016, 02:00 PM
  2. Applying a filter to a pivot table, how to do this in a macro
    By Meeten in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2015, 10:31 AM
  3. VBA Code to select the first cell after applying Filter
    By rshnkmr39 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2015, 07:31 AM
  4. Applying Table Auto Filter to Multiple worksheets in a single Workbook
    By csivell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 02:22 PM
  5. Applying Table Auto Filter to Multiple Worksheets in a Single Workbook and....
    By csivell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2012, 03:40 PM
  6. Applying filter to original data from pivot table
    By Oingofan in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-10-2009, 02:30 PM
  7. How do i grab a table value to fill a cell?
    By gail1166 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2006, 12:10 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