sumif / loop

go14344

New Member
Joined
Jun 17, 2014
Messages
26
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
 

Some videos you may like

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
44,401
Office Version
365
Platform
Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,095,176
Messages
5,442,836
Members
405,201
Latest member
kashyap44

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top