Count + Sumproduct question.

Joined
Dec 3, 2008
Messages
33
Hi there,

I have a sheet where I want to calculate the count of 1 column (which values are 10 digit material numbers) based on the country in another column but only if a third column's value is greater than 1.

So column B = country column C = material number and column J = value check if greater than 1.

Here is an example:

Code:
[B]Column B             Column C       Column J [/B]
Belgium              1234567891       100
Belgium              1234567893       100
Belgium              1234567894
Netherlands          1234567895       300
Spain                1234567895       50

So in my formula the result for Belgium would be 2 as there are 2 material numbers in column C which have a value in column J that are greater than 1.

I hope this is clear, I assume I need to use a SUMPRODUCT formula with a countif nested in there somewhere but I've tried and can't seem to get it to work.

Any help would be greatly appreciated.

Thanks in advance,

Ian.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
You don't need countif in there, just sumproduct by itself works.

Try

=SUMPRODUCT(--(B1:B100="Belgium"),--(ISNUMBER(C1:C100)),--(J1:J100>1))


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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