Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
CountIf for unfiltered cells.
I'm trying to implement a countif for visible cells. When I use the filter it
doesn't seem to affect the values I get back for xlCellTypeVisible. This is my function, I'm sure I am doing something stupid. Function CountIfVisible(UserRange, criteria) Dim count As Integer count = 0 For Each cell In UserRange.SpecialCells(xlCellTypeVisible) If cell.Value = criteria Then count = count + 1 End If Next cell CountIfVisible = count MsgBox count End Function Thanks for any help, Dave |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
paste filtered data in unfiltered list | Excel Discussion (Misc queries) | |||
filtering in a worksheet and then cut items out i lose unfiltered | Excel Discussion (Misc queries) | |||
Problem viewing back the "Unfiltered range" | Excel Discussion (Misc queries) | |||
How do I delete only the unfiltered row? | Excel Discussion (Misc queries) | |||
Excel 2007 Autofilter deleting unfiltered Data | Excel Worksheet Functions |