Special COUNTIF

petiteshiraz

Board Regular
Joined
May 16, 2005
Messages
145
I want to add up all the values in column R (R:R) but I only want to add the portion of the values that are equal to or under $10,000.

So, if a cell has a value of $70,000 – I only want to count $10,000 of it. If the value is $6,000, then I want to count the whole amount.

How do I write this?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
you're right

I was too hasty

what about adding up all values and then subtracting, along the lines of my earlier post, those >=10000 ?

I'll start up Excel, check it & get back to confirm
 
Upvote 0
Try using an array formula like this

=SUM(IF(R2:R100<10000,R2:R100,10000))

confirmed with CTRL+SHIFT+ENTER
 
Last edited:
Upvote 0
=SUMIF(R:R,"<10000",R:R)+COUNTIF(R:R,">=10000")*10000


I think that might be close but it gives me values above $10,000 not equal to or less than $10,000.
 
Upvote 0
best to double check, I might be wrong. :-) though close - so a simple fix should be available

I'm ducking out for a little while, so won't be online for the next hour, btw
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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