Forum example:
{=AVERAGE(IF((SUBTOTAL(3,OFFSET(raw!$U$2:$U$64999,ROW(raw!$U$2:$U$64999)-MIN(ROW(raw!$U$2:$U$64999)),0,1)))*(ISNUMBER(MATCH(raw!$U$2:$U$64999,{2,3,4,5},0))),raw!$AB$2:$AR$64 999))}
Control+shift+enter
=average(if((subtotal(3,OFFSET((W6:W34, ROW(W6:W34-MIN(ROW(W6:W34)),0,1)))*(MATCH(("Original", R6:R34)))
Column R - Original, Extension, <blank>
Column W - Days (numeric)
Row 6 to Row 34
When filter is used, show average number of days with "Original"
Next, I need to program this into a VBA code in Access.
I will substitute the RowCount inside the formula (once I get it working)
Bookmarks