This formula =COUNTIF(C15:C379,"l") returns a result for how many times an employee has been late YTD. Each row is one day of the year and if I filter by date, lets say for the first quarter, the formula will still return a result for the entire range. What would I need to do so that the returned value will represent the sum of only visible cells in the source column after filtering? any help would be appreciated.