I have this formula that works, but is looking for a way to simplify the formula.
=SUMIFS(Sheet2!O:O;Sheet2!B:B;I23;Sheet!F:F;J23;Sheet2!G:G;K23)+ =SUMIFS(Sheet2!O:O;Sheet2!B:B;I23;Sheet!F:F;J23;Sheet2!G:G;K24)

I have tried this but it just returns 0
Can you help


You cannot use an array, K23:K24, as a search value within a SUMIF (or SUMIFS) function.  You will instead need to use a function designed to accept array input - I suggest SUMPRODUCT.

Here is the function you would use in Microsoft Excel:


I see you are not using Microsoft Excel and I speculate you are using Adobe Spreadsheet Open Office (I know this because of your use of ";" instead of "," in the function).  I don't know if this function will work the same in that program, but at the very least, you may need to convert it to the Adobe format.

Please note the function will fail if you have any text in column O (such as a column header). You can correct for that with the following function:


The above is a true array function and must be confirmed with CTRL-SHIFT-ENTER instead of just ENTER (it will be surrounded by braces {}).

Note - Neither of the two functions I provided are any more "simple" than the one you are currently using. I don't see anything wrong with having two SUMIFs tagged together in your original solution.
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts




This expert requires a donation of $5 for questions answered (satisfaction guaranteed). Isn't $5 a value for this experts time?
Microsoft Excel questions related to advanced formulas, Pivot Tables, filters, forms, graphs, and just about anything else (EXCEPT Visual Basic Coding/Programming and Macros, I don't answer questions in those categories).


I have been using spreadsheets since Lotus 1-2-3 was released.

Certified Public Accountant (CPA)

©2016 About.com. All rights reserved.