More elegant way

Tasss

New Member
Joined
Feb 22, 2018
Messages
4
Hi.
I want Excel to execute the following:
=SUM((I5*C5),(I6*C6),(I7*C7),(I8*C8),(I9*C9),(I10*C10),(I11*C11),(I12*C12),(I13*C13),(I14*C14),(I15*C15),(I16*C16),(I17*C17),(I18*C18),(I19*C19),(I20*C20),(I21*C21),(I22*C22),(I23*C23),(I24*C24),(I25*C25),(I26*C26),(I27*C27),(I28*C28),(I29*C29),(I30*C30),(I31*C31),(I32*C32),(I33*C33),(I34*C34),(I35*C35),(I36*C36),(I37*C37),(I38*C38),(I39*C39))

Now, this works perfectly well, but is, as you can imagine a bit of a pain to enter. I am sure there is a more elegant way but can't think of one right now. Could anyone help, please?

Thanks a lot.

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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