Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Good afternoon, Is there anyway that I can use the CountIF function in a macro that would allow me to determine the number of "No" values in a row. This is what I have so far, but it does not work this way... any suggestions are appreciated Dim rng As range dim intErrors as integer Set Rng = ws.Range(ws.Cells(k, 6), ws.Cells(k, 255)) intErrors = CountIF(Rng, "No") Thanks Larry -- lbargers ------------------------------------------------------------------------ lbargers's Profile: http://www.excelforum.com/member.php...o&userid=32798 View this thread: http://www.excelforum.com/showthread...hreadid=545263 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
intErrors = Application.CountIF(Rng, "No")
-- HTH Bob Phillips (replace xxxx in email address with googlemail if mailing direct) "lbargers" wrote in message ... Good afternoon, Is there anyway that I can use the CountIF function in a macro that would allow me to determine the number of "No" values in a row. This is what I have so far, but it does not work this way... any suggestions are appreciated Dim rng As range dim intErrors as integer Set Rng = ws.Range(ws.Cells(k, 6), ws.Cells(k, 255)) intErrors = CountIF(Rng, "No") Thanks Larry -- lbargers ------------------------------------------------------------------------ lbargers's Profile: http://www.excelforum.com/member.php...o&userid=32798 View this thread: http://www.excelforum.com/showthread...hreadid=545263 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks bo -- lbarger ----------------------------------------------------------------------- lbargers's Profile: http://www.excelforum.com/member.php...fo&userid=3279 View this thread: http://www.excelforum.com/showthread.php?threadid=54526 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using COUNTIF | New Users to Excel | |||
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 |