Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That reports zero if none of the cells have zero, because the sum will still
be zero. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Nigel" wrote in message ... Sub zerocheck() Dim testRange As Range, testRow As Long testRow = 2 With ActiveSheet Set testRange = ActiveSheet.Range(.Cells(testRow, "C"), ..Cells(testRow, "K")) End With If Application.WorksheetFunction.Sum(testRange) = 0 Then MsgBox "Zero!" Else MsgBox "Non-Zero" End If End Sub -- Cheers Nigel "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... hit enter too fast. i was thinking of using application.sum. does this make sense? -- Gary "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... what's the best way to test a row, columns c through k to see if all the values are zeroes? -- Gary |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel formula to test a value BETWEEN 2 values? | Excel Discussion (Misc queries) | |||
Test if a value is in a range of values | Excel Worksheet Functions | |||
Return 1st, 2nd, 3rd largest test values | Excel Worksheet Functions | |||
Need to test for alphanumeric value and write numeric values to ce | Excel Worksheet Functions | |||
Test if a number falls between 2 values | Excel Worksheet Functions |