Sum of max values in each row

mwc0914

New Member
Joined
Sep 24, 2015
Messages
40
Assume I have a range of cells with values
Capture.JPG


I need to sum the max value of each row, as of each column.
So May total is the max of all rows, but only as of the May column. So row 3 values would not be included in the total, and the max row 6 as of May would be 4.

Looking for a formula in the total row to do the summing of the max values as of that month.
and yes, you can have blank rows in the mix

Thanks
 

Attachments

  • Capture.JPG
    Capture.JPG
    5.5 KB · Views: 24
  • Capture.JPG
    Capture.JPG
    11.3 KB · Views: 24
  • Capture.JPG
    Capture.JPG
    16.1 KB · Views: 24

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Does this work for you?

ABCDE
1AprilMayJunJul
212
389
4
5
648
7
8TOTAL161819
Sheet1
Cell Formulas
RangeFormula
B8:E8B8=SUMPRODUCT(SUBTOTAL(4,OFFSET($B2,ROW(B2:B6)-ROW(B2),,,COLUMNS($B8:B8))))
Named Ranges
NameRefers ToCells
rng=Sheet1!$B$2:$E$6B8:E8
 
Upvote 0
Now let's amp it up a bit....let's say we want to show a planned pct complete of each task over time

Capture.JPG

Say each task show in column B how much of the project effort it represents.
So say as of June 1, task A should be 50% complete, task B 100% complete, task C 40% complete. etc
Thus Task A as of June 1 represents 2.5% planned completion of the project...(5% in column B * .50 in column E)
Task B is to be 100% complete, representing 20% of the whole project as of June 1.
So if my math is correct, as of June 1 we should be 56.5% planned complete of the project.
I'm looking for the formula that will compute the values highlighted in yellow...the planned completion pct of the project as of that date.

Thanks
 
Upvote 0
That's a relatively small update to the formula:

Book1 (version 1).xlsb
ABCDEFGH
1Task% of Project1-Apr1-May1-Jun1-Jul1-Aug
2A52050100
3B20100
4C505254080100
5D1050100
6E5100
7F102040100
810024.540.556.584100% thru of project
Sheet12
Cell Formulas
RangeFormula
C8:G8C8=SUMPRODUCT(SUBTOTAL(4,OFFSET($C2,ROW(C2:C7)-ROW(C2),,,COLUMNS($C8:C8)))*$B$2:$B$7)/100


2 of our results differ, but I manually checked them, and I think the formula is correct.
 
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,826
Members
449,051
Latest member
excelquestion515

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