## Office & Productivity Software forum

General discussion

# IF and COUNT in Excel '97

by Jim_Murray / April 28, 2005 4:39 AM PDT

Hi

I have numbers in cells b20:b50. The numbers are positive numbers ranging from 0 to infinity.

What I would like to do is count how many of the numbers are greater than 0.

I thought it might be a combiation of the IF and COUNT functions, but can't seem to get the formula to work.

Thanks for any help.

Jim

Discussion is locked
You are posting a reply to: IF and COUNT in Excel '97
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: IF and COUNT in Excel '97
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
You're almost there
by MarkFlax Forum moderator / April 28, 2005 5:00 AM PDT

Using cell B51=COUNTIF(B20:B50,">0")

COUNTIF counts the number of cells, (not their contents), that meet the set criteria, in this case if the contents are greater than 0.

Mark

Collapse -
countif
by Jim_Murray / April 29, 2005 8:34 AM PDT
In reply to: You're almost there

Thanks for the help, works great.

Jim

##### Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

#### CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?