Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Negative Numbers count
I am looking for code that would count all the negative numbers in a column
and msgbox the results. Thanks, Aaron |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Negative Numbers count
Msgbox Application.COUNTIF(Range(A:A),"<0")
-- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Aaron" wrote in message ... I am looking for code that would count all the negative numbers in a column and msgbox the results. Thanks, Aaron |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Negative Numbers count
What if I wanted to count two different tabs and report both results in one
msgbox? "Bob Phillips" wrote: Msgbox Application.COUNTIF(Range(A:A),"<0") -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Aaron" wrote in message ... I am looking for code that would count all the negative numbers in a column and msgbox the results. Thanks, Aaron |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Negative Numbers count
Something like this...
MsgBox Application.CountIf(Sheets("Sheet1").Range("A:A"), "<0") + _ Application.CountIf(Sheets("Sheet2").Range("B:B"), "<0") or this... MsgBox Application.CountIf(Sheets("Sheet1").Range("A:A"), "<0") & vbcrlf & _ Application.CountIf(Sheets("Sheet2").Range("B:B"), "<0") -- HTH... Jim Thomlinson "Aaron" wrote: What if I wanted to count two different tabs and report both results in one msgbox? "Bob Phillips" wrote: Msgbox Application.COUNTIF(Range(A:A),"<0") -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Aaron" wrote in message ... I am looking for code that would count all the negative numbers in a column and msgbox the results. Thanks, Aaron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel, change column of negative numbers to positive numbers? | New Users to Excel | |||
Excel 2002 : Convert Positive Numbers to Negative Numbers ? | Excel Discussion (Misc queries) | |||
How do I count how many positive and negative numbers in a couumn | Excel Discussion (Misc queries) | |||
Set negative numbers to zero. Do not calculate with negative valu | Excel Discussion (Misc queries) | |||
Need to reconcile numbers accounting Harlan Grove code doesn't work for negative numbers | Excel Programming |