countif comparing other cells

sweetlb

New Member
Joined
Oct 9, 2006
Messages
12
I am keeping track of high school football stats and trying to come up with a way to calculate 3rd conversion rate.
I have 3 columns: “Down”, “to go”, and “Gain”.
I want to read the “Down” column and if = 3, then I want to see if “gain” is greater than or equal to the “to go” column.
Example:
A B C
Down To Go Gain
1 10 4
2 6 1
3 5 12
1 10 7
2 3 1
3 2 1
4 1 9
1 10 2
2 8 -2
3 10 4

This is what I was thinking, but can’t seem to get it to work.
=COUNTIF((A1:A10=3)*(C1:C10,">=" B1:B10))

Expecting my output to be 1 in this example.
Any help would be appreciated.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
I am keeping track of high school football stats and trying to come up with a way to calculate 3rd conversion rate.
I have 3 columns: “Down”, “to go”, and “Gain”.
I want to read the “Down” column and if = 3, then I want to see if “gain” is greater than or equal to the “to go” column.
Example:
A B C
Down To Go Gain
1 10 4
2 6 1
3 5 12
1 10 7
2 3 1
3 2 1
4 1 9
1 10 2
2 8 -2
3 10 4

This is what I was thinking, but can’t seem to get it to work.
=COUNTIF((A1:A10=3)*(C1:C10,">=" B1:B10))

Expecting my output to be 1 in this example.
Any help would be appreciated.

Try,

=SUMPRODUCT((A1:A10=3)*(C1:C10>B1:B10))
 

Forum statistics

Threads
1,136,696
Messages
5,677,259
Members
419,682
Latest member
M3one

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
Top