How can I get a reference to the first visible cell above the active one after the data in a table has been filtered.
NOTE: I don't need this for summing up the data above. I know how to do that on filtered data.
This is more complicated. What I'm actually making is a function which would allow me to alternate row colors of duplicate data similar to (Alternate Row Colors of Duplicate Data in Excel) but it needs to be able to work on filtered data.
SUBTOTAL(103, A1)>0
, whereA1
is a cell in the row of interest.SUBTOTAL
andAGGREGATE
are two functions that will count with an option to only count visible data.103
above is theCOUNTA
function for visible cells only. You can use that function to determine visibility and then possibly rig up a conditional formatting looking for it. See support.office.com/en-in/article/…