Need Help with Countif

pkohli

Board Regular
Joined
Aug 2, 2005
Messages
71
Hi

I need a help with countif function. I am trying to write a formula :-
Book1
ABCD
1A10
2B
3A
4C2
5A3
6B4
7C67
8C8
9B9
10
11A2
12B2
13C3
Sheet1


The formula I am trying to write is if column A has "A" count the values for A in column B...if there is no value then it shld count it as zero..

Can someone please help.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Not working...I need to count not sum..also could some one tell me how to use countif with 2 criteria i.e. -
Book2
ABCD
1NameAddressStatus
2BenNAH
3RickyNAH
4LeeUKM
5LeeUKM
6FoeAUL
7RickyAUL
8RickyUKH
9RickyUSL
10BenUKM
11BenUKH
12BenAUM
13BenAUL
Sheet1


I want to count if name is ben and address is UK, how many H are in status.
 
Upvote 0
You can't use whole columns for SUMPRODUCT but it should work if you use

=SUMPRODUCT(--(A2:A100="ben"),--(B2:B100="uk"),--(C2:C100="h"))
 
Upvote 0
You can't use whole columns for SUMPRODUCT but it should work if you use

=SUMPRODUCT(--(A2:A100="ben"),--(B2:B100="uk"),--(C2:C100="h"))

:oops: oops :oops: forgot
 
Upvote 0
What exactly are the criteria? column B needs to be any number?

Perhaps try

=SUMPRODUCT(--(A1:A100="a"),--ISNUMBER(B1:B100))
 
Upvote 0

Forum statistics

Threads
1,214,539
Messages
6,120,100
Members
448,944
Latest member
SarahSomethingExcel100

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