HINT: Use CountIf function
In this tutorial, I will demonstrate how we calculate how often a number comes up in selected data range! This picture below, is the result.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizqiv6dOFmB7qY59iAhC39__PhdkpZuvgKFCDp5rJAt54Ol3rVGFHHIAiDa0C7tEKIa2JnNmd4eipdotZ8NWiutpzpX3c2g-nD0YO1gF1QvdH3KVbG9k3ipXPMrzdXUN3DPwMDaKsWHA4/s400/countif+01.png)
Step 01:
I type "=COUNTIF(" in the cell C5
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0DUh3ZKsBolG4OgvVf2UXSwvrO-NRcS3nCrR2X_IZiZzKmuTJyLHNLruK3jroRpFU9HR-xPOWTLbcuE4GUl_-lk0MS_STdS8CxRalt7h5Oq0LbPrrJxAPF2h-H98vV4Q54AukTDDnWZc/s400/countif+02.png)
Step 02:
Then I select data range, for example, I select range G5 to G12.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQzf_hy4DvmR8xqKi_uDhwQyABMjt8QxFg-I1qMP5LyfOJDsGT21A2AGRwCxcyTlNVaIIO5_rCwlYgtFNBZfp2LssqU22txAxa1NXBijWWGG7xt5yZhSIdthAqyYCmel3Smpn6PcGBToI/s400/countif+03.png)
Step 03:
Type "," then select (or type) data for criteria (for example, I select cell I5 because I want Excel find out how many "1" comes up in data range.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRDVnik_xmZkvrcMsh1c4B4JWYieoHYI5Wc49rWiPwBL8ULxBYjTylQOqPKYbJoYvF2AnNgB0Rd0EzSn6ajhcrNKUFrrseEaZloe9ky5WtGuY1Fi0lGWXrhbXgWvkwgxgGrG9Z5NhUJh0/s400/countif+04.png)
Step 04:
Type ")", to close function. But don't press Enter now.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbyyni0-ed6xnVV3qpQdoKrump-UUuhgglTR8tWtteQH79gBicV8Rh80Gn3245n5OA1DAPHybHHqwpXMrDZr8AlkVvDKqQ2XzGonwwy3zxBzk8JKyJFOC_lGGaztLQZOiuPstO4SrA-eQ/s400/countif+05.png)
Step 05:
I need to keep data range do not change when I drag this equation to cell J6 and J7. So, I should make the data range as absolute reference (by using "$" sign).
You can type it manually, or press F4 button on keyboard. So from G5 become $G$5. Do it to G5 too. After these things, you can press Enter.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCPet0TA4kijSVsf6gmhGPpH580tG4uaKya5z0pvI5XCrz8APZbsZ6OQ9w0F7tZrJrv9ckuUa_AZ8VbjwZVsUe0_haNOdjDYQBJ4BqFmRQU7jGDQNKyNSkp8AAsePZg4Kd6fk8QYrZnPE/s400/countif+05.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnAegf242EnYk_qUtujdTt7Eq_oPyaaxZrcoOgMkwzB482DsPLJTCeiOJNvXjMcQrNNHCNdmZ70G_s0L1ym96lYEg0ntcWuvW-OfH0yj3ZEPH9dp83H63uRnnJOa58r7NPm7t8LwnaJQ8/s400/countif+06.png)
Step 06:
Drag formula in cell I5 to I7, so you got same formula for I6 and I7 but with different reference for criteria.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYYCG-BWjYOnYYwB7khR1x5H2WOiyvcOU116M0jcQlT3SeJ8gk_aXpKddpv0EqSrlcbgZtNdB_gys1Bfjr_3RcP7_Uyki9u5z1xvkNYVzGKSCHMyg-fC8CtC-c18rGOi0CoK261lKWCmE/s400/countif+07.png)
Final Result:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizqiv6dOFmB7qY59iAhC39__PhdkpZuvgKFCDp5rJAt54Ol3rVGFHHIAiDa0C7tEKIa2JnNmd4eipdotZ8NWiutpzpX3c2g-nD0YO1gF1QvdH3KVbG9k3ipXPMrzdXUN3DPwMDaKsWHA4/s400/countif+01.png)
ERRORS:
ReplyDeleteSetp 1 should read " =COUNTIF( in cell J5 "
Step 5 should read "Do it to G12 too"
Step 6 should read "Drag formula in cell J5 to J7, so you have the same formula for J6 and J7 but with different reference for criteria."
Errors ?
ReplyDeleteOh really? But in my Excel everything is OK