Need formula to reference the first visible cell in a filtered column, please.

Odie

Board Regular
Joined
Oct 23, 2009
Messages
90
Apologies, I have looked all over for this and cannot find. My range is B15:Z500. Filter column is K. In cell K9 I need a formula to always show the first value of the of the first VISIBLE cell in column K. Please advise me how to do this. Excel 2003 Thanks, Odie.
 
I had a similar issue I resolved in a slightly different way.
I added an index column to my data with =row().
Then I used index and subtotal to find the first visible record.
If my index column is A and the result I want to return is in B the formula is like this.
=index(B:B,subtotal(5,A:A))
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi Odie

Assuming the first visible cell in the range has a value, try in K9:

=INDEX(K:K,MIN(IF(SUBTOTAL(3,OFFSET(K15,ROW(K15:K500)-ROW(K15),0)),ROW(K15:K500))))

This in an array formula and so MUST be confirmed with CTRL+SHIFT+ENTER and not just ENTER.
how can i make the cell blank if no filter is apllied? this works properly, just need to make the cell blank if there are no filters
 
Upvote 0
I thought I was starting with this same problem, but realized eventually what I really needed was the following:
{=TRIMMEAN(IF(SUBTOTAL(3,OFFSET(OP_CODE_TIMES[RATE],ROW(OP_CODE_TIMES[RATE])-ROW(T33),,1)),OP_CODE_TIMES[RATE]),B4)}

Hope it helps someone....
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,280
Members
449,220
Latest member
Excel Master

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