IF & SUMPRODUCT

momentumons

Board Regular
Joined
Mar 30, 2020
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hello! I am using this SUM PRODUCT formula that is working beautifully for me:

=SUMPRODUCT(--($B13:$B26="DISPLAY"),$D13:$D26,U13:U26)

However, I now have to add some criteria that says 'IF the outcome of the above is >(3%*U$29), then just put (3%*U$29) (ie 3% is the max).

Unfortunately I can't seem to do the normal "IF" thing with the SUMPRODUCT bit as the logical test.

I can currently make this work if I keep the SUMPRODUCT and add another line with the normal IF test, but i'd like to keep it all in one cell if possible (as then i'd have to hide the SUMPRODUCT one neatness and I am worried unseen errors might occur!)

Can you help? Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try this:
=MIN(0.03*U$29,SUMPRODUCT(--($B13:$B26="DISPLAY"),$D13:$D26,U13:U26))
 
Upvote 0
Maybe:

=MIN(0.03*$U29,SUMPRODUCT(--($B13:$B26="DISPLAY"),$D13:$D26,U13:U26))
 
Upvote 0

Forum statistics

Threads
1,226,731
Messages
6,192,716
Members
453,749
Latest member
learningexcelthankyou

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