SUMPRODUCT Question?

gtbb

Board Regular
Joined
Apr 7, 2008
Messages
118
Hi All,

Is there an alternative way to shorten the below formula?

Thanks a lot!

SUMPRODUCT(--('All Transactions'!$A$2:$A$3000=A9),--('All Transactions'!$C$2:$C$3000="INTEREST"),'All Transactions'!$B$2:$B$3000)+SUMPRODUCT(--('All Transactions'!$A$2:$A$3000=A9),--('All Transactions'!$C$2:$C$3000="INTEREST ADJUSTMENT"),'All Transactions'!$B$2:$B$3000)+SUMPRODUCT(--('All Transactions'!$A$2:$A$3000=A9),--('All Transactions'!$C$2:$C$3000="INTEREST ADJUSTMENTS"),'All Transactions'!$B$2:$B$3000)
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
Maybe:

=SUMPRODUCT(--('All Transactions'!$A$2:$A$3000=A9),--(LEFT('All Transactions'!$C$2:$C$3000,8)="INTEREST"),'All Transactions'!$B$2:$B$3000)

Dom
 
Upvote 0

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,892
Hi gtbb

Domski solution will work for any string that starts with "INTEREST". If you want to allow only the exact strings in your post:

=SUMPRODUCT(--('All Transactions'!$A$2:$A$3000=A9),--ISNUMBER(MATCH('All Transactions'!$C$2:$C$3000,{"INTEREST","INTEREST ADJUSTMENT","INTEREST ADJUSTMENTS"},0)),'All Transactions'!$B$2:$B$3000)
 
Upvote 0

Forum statistics

Threads
1,190,959
Messages
5,983,863
Members
439,867
Latest member
Shadrack

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
Top