Sum Matching Columns And Rows Excel Formula
where data (C5:G14), days (B5:B14), and codes (C4:G4) are named ranges. Note: In the latest version of Excel you can also use the FILTER function, as explained below. SUMPRODUCT function In the the example shown, the formula in J6 is: where data (C5:G14), days (B5:B14), and codes (C4:G4) are named ranges. In this case, we are multiplying all values in the named range data by two expressions that “zero out” values that should not be included in the final sum: The first expression applies a condition based on codes: Since J4 contains “B”, the expression creates an array of TRUE FALSE values like this: Each TRUE indicates a column where the code is “B”....