COUNT IF Question.

NAZQAR

New Member
Joined
May 11, 2014
Messages
25
In column A the numbers 1, 2 or 3 may appear. In Column B there will be a Yes or a No. I want to be able to count how many 1's, 2's or 3's there are which is easy enough but I also want to know how many of each number have a Yes in their corresponding row in column B.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
You're on the right track. Since you're evaluating more than 1 criteria, you need to use COUNTIFS; not COUNTIF. This formula will count total number of cells with a value of 1 (with "Yes" in col. B)
=COUNTIFS(A:A, "1", B:B, "Yes")
 
Upvote 0
Solution
You're on the right track. Since you're evaluating more than 1 criteria, you need to use COUNTIFS; not COUNTIF. This formula will count total number of cells with a value of 1 (with "Yes" in col. B)
=COUNTIFS(A:A, "1", B:B, "Yes")
Yeah, I figured it out after thinking for a bit. I have been "away" from Excel for a few years so I am a bit rusty. Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,559
Members
449,089
Latest member
Motoracer88

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