Friday, August 5, 2016

MS Excel 2003: Use an array formula to sum values in Column AB when value in Column E and Column AB match criteria

Question: In Microsoft Excel 2003/XP/2000/97, I need to create a formula that will sum all the values in Column AB when the value on the same row in Column E is 2 and the value in Column AB is greater than 0.
Answer: This can be done in Excel with an array formula.
Let's look at an example.
Microsoft Excel
In cell E15, we've created the following array formula:
=SUM((AB5:AB13)*(E5:E13=2)*(AB5:AB13>0))
When creating your array formula, you need to use Ctrl+Shift+Enter instead of Enter. This creates {} brackets around your formula as follows:
{=SUM((AB5:AB13)*(E5:E13=2)*(AB5:AB13>0))}