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, whereA1is a cell in the row of interest.SUBTOTALandAGGREGATEare two functions that will count with an option to only count visible data.103above is theCOUNTAfunction for visible cells only. You can use that function to determine visibility and then possibly rig up a conditional formatting looking for it. See https://support.office.com/en-in/article/SUBTOTAL-function-bbecc044-0889-4185-9685-3d2c8b72826f – Byron Wall May 12 '15 at 15:39