COUNT fx help needed

brose99

New Member
Joined
Jun 16, 2018
Messages
35
I need help with the following COUNT fx

----A---------B--------C

1--1.9-------1
2--1.8-----------------1
3--1.6-----------------1
4--1.4-----------------1
5--1.2-------1
6--0.9-------1

I need to count the number of 1's in column B as long as the range in column A is between 1 and 2.
I also need to count the number of 1's in column C as long as the range in column A is between 1 and 2.

Thanks!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You can use COUNTIFS, which allows you to count with multiple conditions.

Your first formula would look like:
Code:
=COUNTIFS(B1:B6,"=1",A1:A6,">=1",A1:A6,"<=2")

I will let you figure out the second. It will be a good test to make sure you understand COUNTIFS.
Here is a link, if you need it: https://www.techonthenet.com/excel/formulas/countifs.php
 
Upvote 0
Hi,


Book1
ABC
11.91
21.81
31.61
41.41
51.21
60.91
7
8Results23
Sheet195
Cell Formulas
RangeFormula
B8=COUNTIFS(B1:B6,1,$A$1:$A$6,">=1",$A$1:$A$6,"<=2")
C8=COUNTIFS(C1:C6,1,$A$1:$A$6,">=1",$A$1:$A$6,"<=2")
 
Upvote 0
Perhaps this:


=COUNTIFS($A$1:$A$6,">=1",$A$1:$A$6,"<=2",B1:B6,1)
 
Upvote 0
Thanks for your replies everyone! I had to step away but will test these out tonight when I can get back to my excel workbook. I appreciate all of your help!!!
 
Upvote 0
You're welcome, glad to help.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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