sumif / loop

go14344

New Member
Joined
Jun 17, 2014
Messages
28
is there a way i can simplify this formula?.. because it will be too long if i have 50 cell to sumifs..

SUMIF(AdditivesCalc!$I:$I,$A3,AdditivesCalc!$K:$K)+
SUMIF(AdditivesCalc!$L:$L,$A3,AdditivesCalc!$N:$N)+
SUMIF(AdditivesCalc!$O:$O,$A3,AdditivesCalc!$Q:$Q)+
SUMIF(AdditivesCalc!$R:$R,$A3,AdditivesCalc!$T:$T)+
SUMIF(AdditivesCalc!$U:$U,$A3,AdditivesCalc!$W:$W)+
SUMIF(AdditivesCalc!$X:$X,$A3,AdditivesCalc!$Z:$Z)+
SUMIF(AdditivesCalc!$AA:$AA,$A3,AdditivesCalc!$AC:$AC)+
SUMIF(AdditivesCalc!$AD:$AD,$A3,AdditivesCalc!$AF:$AF)+
SUMIF(AdditivesCalc!$AG:$AG,$A3,AdditivesCalc!$AI:$AI)+
SUMIF(AdditivesCalc!$AJ:$AJ,$A3,AdditivesCalc!$AL:$AL)+
SUMIF(AdditivesCalc!$AM:$AM,$A3,AdditivesCalc!$AO:$AO)+.....

thank you
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It depends on exactly might occur in the columns of interest and the intervening columns (J, M, P etc).
Does this do what you want?

=SUMIF(AdditivesCalc!$I:$AM,$A3,AdditivesCalc!$K:$AO)

If not could we have some (small) sample data from, say, columns I:Q of 'AdditivesCalc', including all the column headings? Link in my signature block below for posting sample data.
 
Upvote 0

Forum statistics

Threads
1,215,181
Messages
6,123,513
Members
449,101
Latest member
mgro123

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