Using a sum/subtract as a condition in a countifs formula

i_excel

Board Regular
Joined
Jun 4, 2015
Messages
113
Hi

I am trying to use a summation/subtraction in a countifs formula, but it's not working out for me. I am wondering whether or not this can be done, and if so, how? Below is an example of the problem, which I hope clarifies my question:

A B C
C 1 4
G 2 3
I 3 2
C 4 1

I would like to use a formula like: countifs(a1:a4,"C", (b1:b4)-(c1:c4),>3), which for the above example should return a value of 2. The subtraction condition should only be imposed on the subtraction of values on the same row.

Let me know if I haven't explained my difficulty clearly enough and I will endeavour to rephrase the problem.

Kind regards
i_excel
 
Last edited:
Thank you James006, that worked as desired. And thank you both for enduring me. XOR LX, I agree with your latest post. I tried to rectify the problem with my post at 5:51pm, but it remains a confusing thread.

Kind regards
i_excel
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Glad you have managed to sort it out ...

I can testify XOR LX is a lot more patient than myself ... with all the twisted issues he has so kindly fixed for me ...

Cheers

James
 
Upvote 0
I can testify XOR LX is a lot more patient than myself ... with all the twisted issues he has so kindly fixed for me ...

That's kind of you to say so, but I think the issue here was less one of patience than more one of understanding, of which you seem to have demonstrated more than I did in this thread.

Cheers
 
Upvote 0
XOR LX,

If you allow me to comment on BOTH your patience AND your understanding ... your phenomenal expertise does no longer need to be demonstrated ...!!!
 
Upvote 0

Forum statistics

Threads
1,215,208
Messages
6,123,642
Members
449,111
Latest member
ghennedy

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