Countif???

KPresnell

New Member
Joined
Jan 13, 2011
Messages
13
I have a list of #s in column A and C. I want to add a formula that will count the number of times that the # in column C > the # in column A. (C1>A1, C2>A2, etc) Any suggestions?


A C
120 130
150 120
115 95
136 137

:confused:
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I have a list of #s in column A and C. I want to add a formula that will count the number of times that the # in column C > the # in column A. (C1>A1, C2>A2, etc) Any suggestions?


A C
120 130
150 120
115 95
136 137

:confused:

Control+shift+enter, not just enter:

=SUM(IF(ISNUMBER(A1:A4),IF(ISNUMBER(C1:C4),IF(C1:C4>A1:A4,1))))
 
Upvote 0
I have a list of #s in column A and C. I want to add a formula that will count the number of times that the # in column C > the # in column A. (C1>A1, C2>A2, etc) Any suggestions?


A C
120 130
150 120
115 95
136 137

:confused:
Assuming there are no empty cells...

=SUMPRODUCT(--(C2:C5>A2:A5))
 
Upvote 0
Aladin Akyurek said:
You are welcome. Thanks for providing feedback. By the way, avoiding non-auditable/costly assumptions would be a best practice in the world of spreadsheet models.
Trying to account for scenarios that may not exist leads to over complication, obfuscation and inefficiency.

Best practice is the KISS methodology.

Keep It Simple Stupid
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,687
Members
452,938
Latest member
babeneker

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