Countifs

xxsalahxx

Active Member
Joined
Jun 25, 2011
Messages
320
Office Version
  1. 2007
Hello
I have three columns in a spreadhseet
Column A is text
Column B is numbers
Column C is numbers
What im trying to do is count numbers in column C is equal or over to the number in column B and is equal to certain text in column A such as apples

Not even sure if this is countif?

Can anyone help?

Thanking you in advance
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this:

=SUMPRODUCT(--(A1:A100="apples"),--(C1:C100>=B1:B100))

adjust range to suit
 
Upvote 0
Try this:
Code:
=SUMPRODUCT(--(A:A="Apples"),--(C:C>=B:B))
 
Upvote 0
Thank you so much

If I wanted to take this one step further and keep the sumproduct formula and only wanted count the numbers over 20 in column C do you have any idea if I can do this?
Thanks
 
Upvote 0
Its really just a matter of adding another condition similar to the two we already have there, i.e.
Code:
=SUMPRODUCT(--(A:A="Apples"),--(C:C>=B:B),[COLOR=#ff0000]--(C:C>20)[/COLOR])
You should start to see the pattern here, and should be able to add another other conditions you need.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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