HELP!!: Conditional COUNTA formula?????

mchsueh87

New Member
Joined
Mar 8, 2013
Messages
2
hi, i am searching everywhere one the internet for this. It doesnt seem quite work. In column A i have various status and in column B, i have various values with blanks. I want to count the values in column B (not blank) that has corresponding status in column A. see below for example.


Column AColumn B
a1
b2
c3
a
a
a5

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>

So if column A ="a", i want to count the values in column B. In this case, not counting the blanks, the cell would return 2.

i think the answer is either sumproduct or sum(if( statements. I couldnt get it to work though

Please help me!!

-Jay
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Which version of Excel do you have?

In XL2007 or higher, we have COUNTIFS
=COUNTIFS(A1:A10,"a",B1:B10,"<>")

In XL2003 you need SUMPRODUCT
=SUMPRODUCT(--(A1:A10="a"),--(B1:B10<>""))


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,633
Members
449,460
Latest member
jgharbawi

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