Hi guys,
How do i get the following code to ignore any hidden rows within the target range?
regards![]()
Range("E28").Select ActiveCell.FormulaR1C1 = _ "=COUNTIF(Database!C5,""0%"")"
Hi guys,
How do i get the following code to ignore any hidden rows within the target range?
regards![]()
Range("E28").Select ActiveCell.FormulaR1C1 = _ "=COUNTIF(Database!C5,""0%"")"
Try...
Add the desired sheet reference and adjust the range, accordingly![]()
ActiveCell.Formula = "=SUMPRODUCT(SUBTOTAL(103,OFFSET(A2:A10,ROW(A2:A10)-ROW(A2),0,1)),--(A2:A10=0%))"
Last edited by Domenic; 01-25-2012 at 12:04 AM. Reason: Changed the function number for the SUBTOTAL function...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks