Countif formula

baggarwal

Well-known Member
Joined
Jul 10, 2002
Messages
591
Hi All:

Can you please tell me how i can do a countif based on multiple conditions. Here is an example data set.

F E
R F
F F
R E
R F

Lets say I need a formula that will look for a match in column A for R and the another match in column of F. Then I want to count the number of times this match occurs. In this set it would be 2. Can someone please explain how I can do this through a formula.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Or try this formula (array formula - use Ctrl+Shift+Enter and not only Enter):

=SUM(IF($A$1:$A$5="R",IF($B$1:$B$5="F",1,0),0))

Markmzz
 
Upvote 0
Hi All:

Can you please tell me how i can do a countif based on multiple conditions. Here is an example data set.

F E
R F
F F
R E
R F

Lets say I need a formula that will look for a match in column A for R and the another match in column of F. Then I want to count the number of times this match occurs. In this set it would be 2. Can someone please explain how I can do this through a formula.
If you're using Excel 2007 or later...

=COUNTIFS(A1:A5,"R",B1:B5,"F")
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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