I am trying to use countif on a series of numbers that are not adjacent. I have put them in a named range called hourly_totals. If the hourly total is greater than zero, I want it counted. I tried the following, but I am not getting the syntax to work:
=countif(hourly_totals,>0)
=countif("hourly_totals",>0)
=countif(hourly_totals,">0")
=countif("hourly_totals",">0")
I found that if hourly_totals are adjacent cells, then it works. How do I change this to get it to work on non adjacent cells? I have a brute force way of using a otherwise blank column with countif on individual cells, and totaling the column, but I am
looking for a better way.
Excel XP on Windows XP