Return blank cell after filtering data

jk2022

New Member
Joined
Aug 20, 2022
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I'm using this formula to return the top row's value after being filtered.

=INDEX(CY6:CY100,MIN(IF(SUBTOTAL(3,OFFSET(CY6,ROW(C6:CY100)-ROW(CY6),0)),ROW(CY6:CY100)-ROW(CY6)+1)))

If the row that comes up after being filtered has a blank in the cell I'm referencing, then the formula will return whatever value was in the first row before any filters were applied. I would like the formula to return a blank cell if nothing is in the referenced cell.

Any help greatly appreciated.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the MrExcel board!

Your description is not matching my experience. Could we have a small (5-10 rows) set of unfiltered sample data from column CY (preferably with XL2BB) and explain in relation to the sample data which cells are hidden after the filter and what result you then want.

Can you also confirm whether the values in column CY ..
- are text, numerical, some of each, something else?
- are the result of formulas or just fixed values?
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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