SUMPRODUCT and LEFT

Mark McInerney

Active Member
Joined
Apr 4, 2012
Messages
281
Office Version
  1. 365
Platform
  1. Windows
Hi Folks - Thanks in advance for taking the time to look at this - appreciated.

I am trying to use SUMPRODUCT but the valed returned is "0" when I am expecting "53"?

Is my syntax correct?

Thanks - Mark.

1718282280241.png
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
try using an asterisk instead of a comma.

Also, have you examined each component of the calculation?

or try this:

Excel Formula:
=SUMPRODUCT((--(LEFT(B3:B4,4)=LEFT(B3,4))*(C3:C4)))
 
Upvote 0
Solution
Hi,
Excel Formula:
=SUMPRODUCT((--(LEFT(B3:B4,4)=LEFT(B3,4))*(C3:C4)))
I'd say that's a tad over egged - either of these should suffice:
Excel Formula:
=SUMPRODUCT(--(LEFT(B3:B17,4)=LEFT(B3,4)),C3:C17)
Excel Formula:
=SUMPRODUCT((LEFT(B3:B17,4)=LEFT(B3,4))*C3:C17)
Or SUMIFS() might be a better choice overall.
Excel Formula:
=SUMIFS(C3:C17,B3:B17,LEFT(B3,4)&"*")
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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