Need to look up Multiple Criteria
Use a simple "&" instead of multiple IFs for the 2 columns of criteria and for the sumif formula
Combine the columns of data in a new column with an "&" (i.e. A1&B1) into C1
Then combine the criteria for the sumif using an "&"
Example: =SUMIF('FY07'!$Z:$Z,'FY07 Totals'!$B36&'FY07 Totals'!$C36,'FY07 '!L:L)
Example: =SUMIF('FY07'!$Z:$Z, Criteria 1 & Criteria 2 ,'FY07 '!L:L)
This shows that you can use a sumif and pull multiple criteria using an "&" in between the criteria field once that the data is combined. Nice trick
But there is an easier way: Arrays
Arrays allow you to look up multiple criteria with a " * " in between criteria using many equations
Example:
=SUM{((Business!$H$5:$H$1000="Not Yet Tested")*(Business!$J$5:$J$1000>B15)*(Business!$J$5:$J$1000<=B16))}
This says to count a cell if it meets 3 criteria. It uses the sum function b/c if a cell has text and it meets a true condition (i.e. all 3 criteria), it will automatically assign it the value of 1...thus, this function sums up all those ones. If the columns had actual numbers, it would sum those numbers)
There is a trick however; you must press CTRL SHFT ENTER after you create the formual and any time you enter the formula box...otherwise, it won't calculate
Will post more on arrays shortly
Use a simple "&" instead of multiple IFs for the 2 columns of criteria and for the sumif formula
Combine the columns of data in a new column with an "&" (i.e. A1&B1) into C1
Then combine the criteria for the sumif using an "&"
Example: =SUMIF('FY07'!$Z:$Z,'FY07 Totals'!$B36&'FY07 Totals'!$C36,'FY07 '!L:L)
Example: =SUMIF('FY07'!$Z:$Z, Criteria 1 & Criteria 2 ,'FY07 '!L:L)
This shows that you can use a sumif and pull multiple criteria using an "&" in between the criteria field once that the data is combined. Nice trick
But there is an easier way: Arrays
Arrays allow you to look up multiple criteria with a " * " in between criteria using many equations
Example:
=SUM{((Business!$H$5:$H$1000="Not Yet Tested")*(Business!$J$5:$J$1000>B15)*(Business!$J$5:$J$1000<=B16))}
This says to count a cell if it meets 3 criteria. It uses the sum function b/c if a cell has text and it meets a true condition (i.e. all 3 criteria), it will automatically assign it the value of 1...thus, this function sums up all those ones. If the columns had actual numbers, it would sum those numbers)
There is a trick however; you must press CTRL SHFT ENTER after you create the formual and any time you enter the formula box...otherwise, it won't calculate
Will post more on arrays shortly
