Hey all,
I am trying to create a formula in the that only sums the first unique value in column B but I need this sum to include a secondary grouping criteria which is column A (so only sum unique values for the Apple ground and then only sum unique values for orange and so on). I am not quite sure how to add in the the additional logic. I have been testing a combination of SUMPRODUCT, SUMIFS and UNIQUE to no avail.
I have the formula to sum all unique values for all cells using this formula =SUMPRODUCT(1/COUNTIFS(B2$:B$9,B$2:B$9&""),B$2:B$9). This currently gives me a value 381.9 for all cells in C2:C9. I need add a secondary criteria to only sum unique values when column A is the same number which would result in multiple values (361.9, 12 and 8) as shown below.
Can anybody provide a helpful solution to amend the SUMPRODUCT formula?
Thanks,
Milos
I am trying to create a formula in the that only sums the first unique value in column B but I need this sum to include a secondary grouping criteria which is column A (so only sum unique values for the Apple ground and then only sum unique values for orange and so on). I am not quite sure how to add in the the additional logic. I have been testing a combination of SUMPRODUCT, SUMIFS and UNIQUE to no avail.
I have the formula to sum all unique values for all cells using this formula =SUMPRODUCT(1/COUNTIFS(B2$:B$9,B$2:B$9&""),B$2:B$9). This currently gives me a value 381.9 for all cells in C2:C9. I need add a secondary criteria to only sum unique values when column A is the same number which would result in multiple values (361.9, 12 and 8) as shown below.
Can anybody provide a helpful solution to amend the SUMPRODUCT formula?
Thanks,
Milos