Help with sumproduct

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
719
Office Version
  1. 2010
Platform
  1. Windows
Hello:

Re: =SUMPRODUCT(--(J1:J5000="OPS*"),--(N1:N5000="Turnover"),Q1:Q5000)

The above is returning zero but when I change OPS to a specific value, formula returns the sum of specific values. The problem is my OPS range contains several variation of OPS (eg OPS51, OPS55, OPS56) and I need to get the sum of all OPS and Turnover so I can't use a specific value. Could you help me with formula.

Many thanks for your help.


Sean
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Yes, sumproduct doesn't like wildcards like that...
Try using LEFT

=SUMPRODUCT(--(LEFT(J1:J5000,3)="OPS"),--(N1:N5000="Turnover"),Q1:Q5000)
 
Upvote 0
Thank you so much jonmo1.

I have to ask, what will we do if this site ever goes down?

Sean.
 
Upvote 0
Hello:

Re: =SUMPRODUCT(--(J1:J5000="OPS*"),--(N1:N5000="Turnover"),Q1:Q5000)

The above is returning zero but when I change OPS to a specific value, formula returns the sum of specific values. The problem is my OPS range contains several variation of OPS (eg OPS51, OPS55, OPS56) and I need to get the sum of all OPS and Turnover so I can't use a specific value. Could you help me with formula.

Many thanks for your help.


Sean
If you're using Excel 2007 or later...

=SUMIFS(Q1:Q5000,J1:J5000,"OPS*",N1:N5000,"Turnover")
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,752
Members
452,940
Latest member
rootytrip

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