Forum

Notifications
Clear all

Formula to select value of cell in first row of filtered data

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

Hello,

There may be better ways of doing this, but I need to find a formula that will pick up a value in

the first row of filtered data. I was searching the web yesterday, and came across a horrendous

formula, which I don't understand and doesn't appear to work with my data.

It may be the way I've edited the range. Is there something simpler I can use?

Sample data attached.

 
Posted : 22/10/2016 6:47 am
 TimC
(@timc)
Posts: 32
Trusted Member
Topic starter
 

I've found one basic mistake in that it was an array formula so I should have pressed CTRL-SHIFT-ENTER.

I've also found a much simpler version which in my case is 

{=INDEX(P8:P94880,MIN(IF(SUBTOTAL(3,OFFSET(P8,ROW(P8:P94880)-ROW(P8),0)),ROW(P8:P94880)-ROW(P8)+1))}, where P

is the column being filtered and P8 is the first row, and P8:P94880 is the range of rows.

Any further thoughts would be welcome. What if I wanted to filter on two columns of data?

 
Posted : 22/10/2016 7:26 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Tim,

I'd use PivotTables instead of overly complicated formulas.

Mynda

 
Posted : 24/10/2016 7:04 pm
 TimC
(@timc)
Posts: 32
Trusted Member
Topic starter
 

How did I know you'd say thatSmile

 
Posted : 25/10/2016 5:00 am
Share: