Excel sum of multiple column

makdu

New Member
Joined
Apr 24, 2018
Messages
2
Code:
=((Attendance!$D$3*Attendance!D5))+ ((Attendance!$E$3*Attendance!E5))+((Attendance!$F$3*Attendance!F5))+((Attendance!$G$3*Attendance!G5))+ ((Attendance!$H$3*Attendance!H5))+((Attendance!$I$3*Attendance!I5))+((Attendance!$J$3*Attendance!J5))+ ((Attendance!$K$3*Attendance!K5))+((Attendance!$L$3*Attendance!L5))+((Attendance!$M$3*Attendance!M5))+ ((Attendance!$N$3*Attendance!N5))+((Attendance!$O$3*Attendance!O5))

I may need to extend this to other coulmns, is there a shorter method
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Code:
=((Attendance!$D$3*Attendance!D5))+ ((Attendance!$E$3*Attendance!E5))+((Attendance!$F$3*Attendance!F5))+((Attendance!$G$3*Attendance!G5))+ ((Attendance!$H$3*Attendance!H5))+((Attendance!$I$3*Attendance!I5))+((Attendance!$J$3*Attendance!J5))+ ((Attendance!$K$3*Attendance!K5))+((Attendance!$L$3*Attendance!L5))+((Attendance!$M$3*Attendance!M5))+ ((Attendance!$N$3*Attendance!N5))+((Attendance!$O$3*Attendance!O5))

I may need to extend this to other coulmns, is there a shorter method

That's what SUMPRODUCT() function exactly does:

=SUMPRODUCT((D3:O3),(D5:O5))

Have a nice day ;)
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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