+ Reply to Thread
Results 1 to 6 of 6

Get Value of First visible cell using Auto Filter

  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Get Value of First visible cell using Auto Filter

    Hi,

    I'm using auto filter to gather information from a giant list. I'm able to use Subtotal function in Row(1) )to gather all the numbers for a person.What I havent been able to do is figue out a way to get the value of the person that I am auto filtering.

    Example
    Row 1 contains my subtotal formula's
    Row 2 Header Row
    Row 3 Auto Filter Buttons
    Row 4 All The Data

    Column(A4:A65000)has the names of the people So when I use the Auto filter by Name how can I get the first visible cell name to show in (A1)?

    Thanks again for your help.

    Mike
    Last edited by realniceguy5000; 11-18-2009 at 01:43 PM.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Get Value of First visible cell using Auto Filter

    Hi,

    Attached is a sample file ... with an array formula ...

    HTH
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Get Value of First visible cell using Auto Filter

    Thanks JeanRage,

    That's what I was looking for.

    It seems to run rather slow at least in my situation, I did change the 65000 to 20000 which help speed things up a little. Less cells to look at But it still locks up for a little.

    Anyway thank you for your help, Mike

    Please Login or Register  to view this content.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Get Value of First visible cell using Auto Filter

    It will be a slow, it's a Volatile array looking at thousands of rows (and given it's volatile it will recalculate (frequently)).

    You may find it a little quicker to add a calc at source, eg:

    Z4: =SUBTOTAL(3,A4)
    copied down for all rows

    Then

    A1: =INDEX(A4:A2000,MATCH(1,Z4:Z2000,0))


    Note that running filters is a Volatile action in itself, for more info. on Volatility see link in sig.

  5. #5
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Get Value of First visible cell using Auto Filter

    Quote Originally Posted by DonkeyOte View Post
    It will be a slow, it's a Volatile array looking at thousands of rows (and given it's volatile it will recalculate (frequently)).

    You may find it a little quicker to add a calc at source, eg:

    Z4: =SUBTOTAL(3,A4)
    copied down for all rows

    Then

    A1: =INDEX(A4:A2000,MATCH(1,Z4:Z2000,0))


    Note that running filters is a Volatile action in itself, for more info. on Volatility see link in sig.
    I understand now,what a differance that change made. That works great!!!!

    Thank You for the follow up...

    Mike

  6. #6
    Registered User
    Join Date
    10-04-2017
    Location
    Here
    MS-Off Ver
    2003
    Posts
    1

    Re: Get Value of First visible cell using Auto Filter

    Thank you, JeanRage!! Just what I needed. :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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