Index match with rows to find name in list

Cyberpunk001

New Member
Joined
Aug 27, 2018
Messages
13
Good day experts,

I want to be able to have a team name automatically updated as I filter a database of staff.
For example I have a list of staff members belonging to a team, team being an arbitrary name, such as a supervisor name.
As the database grows and more teams are assembled, a whole list of names will appear under TEAM.
At the moment, I don't have a viable method of automatically updating cell A4 to give me the name once I have filtered for any given team name.

I have a register with a header on top, one in particular for "TEAM", filtered by team name,which is a range from NQ6:NQ118.
Whenever I filter a team name, eg, DANNY, I want cell A4 to also output "DANNY".

ROW NUMBERCOLUMN ACOLUMN BCOLUMN CCOLUMN NQ
5NAMESURNAMECLOCK NOTEAM
6NAMEDANNY
7SURNAMEJACOB
8NUMBERSAMMY
9SURNAMECATHY

<tbody>
</tbody>










In Cell A4, I have inserted a formula as below:
{=INDEX(TEAM,MIN(IF(SUBTOTAL(3,OFFSET(NQ6:NQ118,ROWS(TEAM)-ROW(NQ6),0)),ROWS(TEAM)-ROW(NQ6)+1)))}
The headings are in row 5.

Here TEAM denotes a defined name, ranged from NQ6:NQ118.

Sorry guys don't know how to upload a screenshot just yet:p

Any help will be greatly appreciated
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,214,827
Messages
6,121,809
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top