SUMPRODUCT Question!

tumblingbay

New Member
Joined
Dec 21, 2011
Messages
6
Hi,

I am having problems with a SUMPRODUCT formula and have searched high and low for a solution with very little success! Hopefuilly someone here can help!

I have three columns and am trying to calculate the total of the third where the first two columns meet certain criteria. The following entry does exactly what I need:

=SUMPRODUCT(--(N5:N13="ACXA"),--(O5:O13=123),P5:P13)

...however; I need the formula to return values where the information in the second column starts with a '1', i.e. 123 or 124 or 155 and so on...

I tried to use wildcards but they dont seem to work against numbers however I did manage to get the following fomula working:

=SUMPRODUCT(--(N5:N13="ACXA"), ((LEFT(O5:O13)="1")*1))

...which returns the number of occurences of the first two columns but I cannot figure out a way of bringing the third 'totals' column in!

Please help!

TB
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
=sumproduct(--(n5:n13="acxa"),--(left(o5:eek:13,1)="1"),p5:p13)
 
Upvote 0
Hi, welcome to the board.

Keeping the syntax consistent:

=SUMPRODUCT(--(N5:N13="ACXA"), --(LEFT(O5:O13)="1"),P5:P13)
 
Upvote 0
wow - three perfect responses in 10 minutes!! I've been pulling my hair out for considerably longer!
Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,008
Members
449,480
Latest member
yesitisasport

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