Forum

Notifications
Clear all

Formula to show filtered item in cell

2 Posts
2 Users
0 Reactions
166 Views
 TimC
(@timc)
Posts: 32
Trusted Member
Topic starter
 

Hello,

I have a filtered block of data, and I filter on items in column L, say. I've picked up a formula from an Excel website, which shows in a cell which item in that column I'm filtering on :

{=INDEX(L2:L10000,MIN(IF(SUBTOTAL(3,OFFSET(L2,ROW(L2:L10000)-ROW(L2),0)),ROW(L2:L10000)-ROW(L2)+1)))}

It works fine, but I'd be grateful, if someone could explain to me in simple terms, what the formula actually does - I particularly lose the plot when it comes to the array brackets.

Thanks

TimC

 
Posted : 07/03/2018 6:15 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Tim,

The curly braces are inserted by Excel automatically when you press CTRL+SHIFT+ENTER to complete the formula.

This tutorial on arrays might help you understand how your formula is evaluating: https://www.myonlinetraininghub.com/excel-array-formula

Mynda

 
Posted : 12/03/2018 7:12 am
Share: