I have a scenario where there are multiple IDs in a column (uniqueid) of data in a Google Spreadsheet, some IDs are also duplicated in different rows.
Some of these ids are labeled as left’, ‘right’ or ‘both’ in another column (obs).
| uniqueid | obs |
|---|---|
| m1 | right |
| m2 | left |
| m1 | both |
| m3 | right |
| m4 | left |
I want to be able to create a counting field that indicates the result of the sum that totals the highest number of distinct ids between only ‘left’ + has ‘both’ (m2+m4+m1) or only ‘right’ + has ‘both’ (m3+m1), in this case it should appear = 3. In case of equal sums between these two conditions, show the sum of only ‘right’ + has ‘both’
I tried looking for help on the forum but I can’t adapt the conditional counting formulas using two columns.