Count Only Positive Numbers With Another Condition

Firas

New Member
Joined
Mar 16, 2009
Messages
3
Assuming 2 columns of 100 rows each; the first contains the names John, Mary, Joe in random order. The second contains positive, zeros and negative numbers. What would be the formula to COUNT all of the positive numbers in column B that are associated with the name John in column A?
Thanks in advance.
Firas
<!-- / message -->
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to the MrExcel board!

Try
=SUMPRODUCT(--(A1:A100="John"),--(B1:B100>0))
 
Upvote 0
Assuming 2 columns of 100 rows each; the first contains the names John, Mary, Joe in random order. The second contains positive, zeros and negative numbers. What would be the formula to COUNT all of the positive numbers in column B that are associated with the name John in column A?
Thanks in advance.
Firas
<!-- / message -->
Code:
=SUMPRODUCT(
   --($A$2:$A$100=E2),
   --ISNUMBER($B$2:$B$100),
   --($B$2:$B$10 > 0))

where E2 houses a value like John.
 
Upvote 0
Thank you both. The sum product will give add the values, but I need just to count them.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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