Forum Discussion
mandyb385
Aug 01, 2019Copper Contributor
Excel: SUM values in a column if matching data in multiple other columns
Hello, I would like to sum data in column L (genetic marker length) if the following conditions are met 1. Matching value in column D (sample ID) and 2. Matching value in column K (genetic mar...
- Aug 02, 2019
The formula in E2 of the attached file is:
=IF(COUNTIFS(A2:A$21,A2,B2:B$21,B2)>1,
"",
SUMIFS(C$2:C2,A$2:A2,A2,B$2:B2,B2))
Twifoo
Aug 02, 2019Silver Contributor
The formula in E2 of the attached file is:
=IF(COUNTIFS(A2:A$21,A2,B2:B$21,B2)>1,
"",
SUMIFS(C$2:C2,A$2:A2,A2,B$2:B2,B2))