Calculate the percentage of positive numbers from I4:I20

PhilipeC

Board Regular
Joined
May 1, 2018
Messages
56
I want a formula to calculate the percentage of positive numbers from I4:I20, an example if i4=10 i5=32 i6=100 i7=6 i8=-43 i9=-90 , than: 4/6 are positive numbers than 66.6% is the percentage of positive numbers.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You could use:

=COUNTIF(I4:I20,">=0")/COUNT(I4:I20)

Up to you if you want to include 0 as a positive.
 
Upvote 0
Hi, the formula result from 5 out 7 positive numbers was 0,29=29,41% but it should be 71,42% , 5 out of 7 the majority is positive?
 
Upvote 0
COUNT(I4:I20) is counting 0 , and i have 12 0 values, how to exclude 0?
Try:
Code:
[COLOR=#333333]=COUNTIF(I4:I20,">0")/[/COLOR][COLOR=#333333]COUNTIF(I4:I20,"<>0")[/COLOR]
 
Upvote 0
You are welcome. Glad we could help (the previous guys did most of the work; just a matter of making minor tweaks to their responses).
The key is understanding how COUNTIF works.

Here is a good write-up, if you are interested: https://www.techonthenet.com/excel/formulas/countif.php
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top