Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Reference the top line of a filtered list

I want to be able to reference the top line of a filtered list with the
intention of using it in a vlookup function in another cell. For example, if
col A has a list of tutor groups R1, R2, R3 etc... and I have a vlookup to
match the tutor group to a person, when I filter by tutor group the persons
name is displayed in this other cell.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Reference the top line of a filtered list

doctorhappy wrote:
I want to be able to reference the top line of a filtered list with the
intention of using it in a vlookup function in another cell. For example, if
col A has a list of tutor groups R1, R2, R3 etc... and I have a vlookup to
match the tutor group to a person, when I filter by tutor group the persons
name is displayed in this other cell.



=INDEX(A2:A1000,MATCH(1,SUBTOTAL(3,OFFSET(A2:A1000 ,ROW(A2:A1000)-ROW(A2),,1)),0))

This is an array formula. Commit with CTRL+SHIFT+ENTER.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Reference the top line of a filtered list

Hi,

This is a great example of the benefits of using range names, suppose you
name your range A, then Glenn's formula becomes

=INDEX(A,MATCH(1,SUBTOTAL(3,OFFSET(A,ROW(A)-ROW(A2),,1)),))

Anytime you find yourself using the same range over and over in one formula
a range name can shorten it.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"doctorhappy" wrote:

I want to be able to reference the top line of a filtered list with the
intention of using it in a vlookup function in another cell. For example, if
col A has a list of tutor groups R1, R2, R3 etc... and I have a vlookup to
match the tutor group to a person, when I filter by tutor group the persons
name is displayed in this other cell.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Reference the top line of a filtered list

Hi,

This is a great example of the benefits of using range names, suppose you
name your range A, then Glenn's formula becomes

=INDEX(A,MATCH(1,SUBTOTAL(3,OFFSET(A,ROW(A)-ROW(A2),,1)),))

Anytime you find yourself using the same range over and over in one formula
a range name can shorten it.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"doctorhappy" wrote:

I want to be able to reference the top line of a filtered list with the
intention of using it in a vlookup function in another cell. For example, if
col A has a list of tutor groups R1, R2, R3 etc... and I have a vlookup to
match the tutor group to a person, when I filter by tutor group the persons
name is displayed in this other cell.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A list of what is being filtered on? Mel Excel Discussion (Misc queries) 5 August 27th 08 05:08 PM
How to combine two list on one reference line Excel 2003 troubled excel user Excel Discussion (Misc queries) 1 July 25th 07 12:32 AM
Totalling up a Filtered List B Baggins Excel Worksheet Functions 2 January 18th 07 01:50 PM
creating a filtered list ASU Excel Discussion (Misc queries) 1 September 14th 06 10:59 AM
How do I reference an Excel filtered list in a function? gordo Excel Worksheet Functions 5 August 17th 06 08:36 PM


All times are GMT +1. The time now is 12:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"