Find name and row number of filtered data.

Tom.Jones

Well-known Member
Joined
Sep 20, 2011
Messages
508
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
Hi,

In a table I filter the data by an item in column A.
How could I see in a cell (say K2) the name of the item after which the filtering is done and in L2 the number of the row on which that item is (only the first row and not the next ones).

Let's say I filter by AAA.
I would like that AAA to appear to me in K2 and let's say that the row with the first AAA item is 42, so in L2 to show me 42.

Thanks.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Where columns A,B,C are filtered. When you select AAA, e1 will say AAA, and f1 will say 3. I used a helper column. There is probably a better way. Basically, it's showing the first record of whatever filter you have.

MrExcelPlayground7.xlsx
ABCDEF
1ThinghelperDataBBB2
2BBB24
3AAA35
4CCC43
5BBB54
6BBB65
7CCC73
8AAA84
9AAA95
10BBB106
11BBB117
12CCC128
13AAA134
14BBB145
15BBB156
16AAA167
17AAA178
18BBB185
Sheet26
Cell Formulas
RangeFormula
E1E1=INDEX(A1:A18,SUBTOTAL(105,B2:B18))
F1F1=SUBTOTAL(105,B2:B18)
B2:B18B2=ROW()
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet26!$A$1:$C$18E1
 
Upvote 0
Solution

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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