ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif array formula (https://www.excelbanter.com/excel-worksheet-functions/50440-countif-array-formula.html)

Bruce

Countif array formula
 
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


Bob Phillips

=SUM(IF('Product Sales'!$H$4:$S$10000,'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)


"Bruce" wrote in message
...
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





All times are GMT +1. The time now is 08:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com