Adding SUMIFS then Divide

zero269

Active Member
Joined
Jan 16, 2023
Messages
253
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm having an issue with adding two SUMIFS results to get an accurate percentage.

I built my overall formula using a few steps. The individual SUMIFS turn out perfect. However, when trying to combine everything, the percentages are incorrect.

Test Columns 4 & 5 show vastly different percentages. Column 4 is correct.

1674615850685.png


Test Column 1 (Points to Date) using formula which sums up the earned Points for Student1 within a date range and produces the correct values.

Excel Formula:
=SUMIFS(Student1[Points],Student1[Test Date],">="&$C$14,Student1[Test Date],"<="&$C18)

Test Column 2 (AR Points) using formula which sums up the potential AR Points for Student1 within a date range, and where the Score value is empty, and produces the correct values.
Excel Formula:
=SUMIFS(Student1[AR Points],Student1[Test Date],">="&$C$14,Student1[Test Date],"<="&$C18,Student1[Score],"="&"")

Test Column 3 (Total Points) just sums the above two values from 1 & 2 and produces the correct results.
Excel Formula:
=SUM(R18:S18)

Test Column 4 (Short %) just divides Column 3 by 14 (cell $B$14) and produces the correct results.

Excel Formula:
=T18/$B$14

Test Column 5 (Long %) is my failed attempt at combining/adding the formulas from 1 & 2 together and then dividing it by 14 located in cell $B$14.

Excel Formula:
=SUMIFS(Student1[Points],Student1[Test Date],">="&$C$14,Student1[Test Date],"<="&$C18)+SUMIFS(Student1[AR Points],Student1[Test Date],">="&$C$14,Student1[Test Date],"<="&$C18,Student1[Score],"="&"")/14

I even tried a few variations of enclosing the SUMIFS with parenthesis, but that had no effect on the currently incorrect results.
=SUMIFS+(SUMIFS)/14
=(SUMIFS)+SUMIFS/14
=(SUMIFS)+(SUMIFS)/14


If I just add the two SUMIFS without dividing the results by 14, I get the correct sum of points seen in Test Column 3:
=SUMIFS(formula)+SUMIFS(formula)


Once I try dividing by 14, all hell breaks loose…

Any help deciphering my mistake would be greatly appreciated…
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Disregard my request...
I just tried the following and it worked:
=((SUMIFS)+(SUMIFS))/14
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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