Countif array formula

G

Guest

I have the following formula to count values greater than zero.

=COUNTIF('Product Sales'!$H$4:$H$1000, ">" & 0)

I want to change it so that if the sum of the range in a row is greater than
zero.

=COUNTIF(sum('Product Sales'!$H$4:$S$1000), ">" & 0)

I know this is not correct, but what do I need to do?

Bruce
 
B

Bob Phillips

=SUM(IF('Product Sales'!$H$4:$S$1000>0,'Product Sales'!$H$4:$S$1000))

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top