+ Reply to Thread
Results 1 to 5 of 5

Return the filtered results of a table to a specific cell

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Return the filtered results of a table to a specific cell

    Say I have a table like such:

    [A1] [B1] [C1]
    1 cat green
    2 dog orange
    3 cow red
    4 pig black

    Now say I filter by Column 1, and select to only filter for "2". The result looks like:

    [A1] [B1] [C1]
    2 dog orange


    I need a completely separate cell (not part of the table, say E1) to display the first visible cell in column 2. So in this case, E1 would display "dog". If I re-filtered for "4", it would now display "pig". The closest function I've found would be SUBTOTAL, but that only works on numbers. My filters will be unique meaning only one row will be visible, if that makes it any simpler.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    10-04-2014
    Location
    Europe
    MS-Off Ver
    2007
    Posts
    107

    Re: Return the filtered results of a table to a specific cell

    Hi
    I hope I haven't misunderstood and know this may be a little simplistic but,
    If you are seeking to reproduce a value in the first visible cell, if your filter returns Dog, Pig etc into the B column then wouldn't simply putting =B1 in cell E1 work?

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Return the filtered results of a table to a specific cell

    Hi,

    you could add to your database in column D a service column.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    in F1 to get first filtered string in B2:B10000

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Hope it helps
    Last edited by canapone; 11-02-2014 at 02:50 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Return the filtered results of a table to a specific cell

    Hi again,


    here attached a small example.

    Regards
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Re: Return the filtered results of a table to a specific cell

    Bobsone: The problem is when I filter results of a table, the first visible row won't necessarily be in row 1. So entering =B1 will always display whatever is in B1, and be unaffected by my filter

    canapone: The service row with subtotals and match works perfectly. Thanks for the example file, that made it easy to understand.

  6. #6
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Re: Return the filtered results of a table to a specific cell

    Bobsone: The problem is when I filter results of a table, the first visible row won't necessarily be in row 1. So entering =B1 will always display whatever is in B1, and be unaffected by my filter

    canapone: The service row with subtotals and match works perfectly. Thanks for the example file, that made it easy to understand.

  7. #7
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Return the filtered results of a table to a specific cell

    Hi,

    you're welcome.

    Glad to be of some help.

+ 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] Return result from a table based on two other cell results
    By jgregory43 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 11:01 PM
  2. VBA to return specific filtered results on detail page - Paste problem
    By Sarahndipity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2013, 03:15 PM
  3. [SOLVED] search for specific text in a file and return a value to a cell based on the results
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-03-2013, 07:00 PM
  4. Replies: 1
    Last Post: 11-01-2012, 12:28 AM
  5. Replies: 3
    Last Post: 08-09-2010, 08:36 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