Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm getting an error message when the following line attempts to execute:
x = CountIf(Worksheets(Sheet1Name).Range("H" & Sheet1RowPointer & ":U" & Sheet1RowPointer), "0") Sheet1Name is Dim'd as String. Sheet1RowPointer is "Dim'd as Integer. I'm simply trying to count the number of cells that contain a value 0 for a given row between columns H & U, inclusive, and assign the result to "x". Can someone tell me how to fix the aforementioned line so it will work correctly? Thanks in advance for the help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF.... | Excel Worksheet Functions | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
COUNTIF in one colum then COUNTIF in another...??? | Excel Worksheet Functions |