Need minimum value in a SUMPRODUCT formula

archosatrum

New Member
Joined
May 23, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have a database that shows a bunch of courses required by my employees and then a column for every week in the year to track at which point the employees attend the course and get credit for it. At any given week I want to know the percentage of students that graduated from class as an average. I've been using SUMPRODUCT for this. However, any graduates who complete the course above the required amount cannot count towards my average, they need to be capped. I thought about using a minimum function but that is not working within SUMPRODUCT. I've attached a small example of what I'm trying to accomplish. Any help is appreciated!
 

Attachments

  • SUMPRODUCT Help.png
    SUMPRODUCT Help.png
    37.2 KB · Views: 27

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
try this modified version

Excel Formula:
=SUMPRODUCT(--($D$8:$D$14>0),IFERROR((IF(E8:E14<=$D$8:$D$14,E8:E14,$D$8:$D$14)/$D$8:$D$14),0))/COUNTIF($D$8:$D$14,">0")

Book1
CDEFGH
7Reqd37.5%53.5%83.3%91.7%
8A82344
9B60058
10C31233
11D04555
12E33456
13F64446
14G20124
Sheet1
Cell Formulas
RangeFormula
E7:H7E7=SUMPRODUCT(--($D$8:$D$14>0),IFERROR((IF(E8:E14<=$D$8:$D$14,E8:E14,$D$8:$D$14)/$D$8:$D$14),0))/COUNTIF($D$8:$D$14,">0")
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Need minimum value in a SUMPRODUCT formula
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,648
Members
452,992
Latest member
TokugawaIesuma

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