Hello,
I have a spreadsheet with unique student IDs in column A. Each ID may have multiple rows with different values in column D (student activities--maybe one row is Baseball and one is Glee Club). The formula below counts all the other rows that match that row's column D (activity) and column H (class year).
Column O =COUNTIFS($D$1:$D$68861,D2,$H$1:$H$68861,H2,$A$1:$A$68861,"<>"&A2)
I want the next column to total up all the people each ID matched with across multiple activities. I was doing this: =SUMIF($A$1:$A$68861,A2,$O$1:$O$68861) but then I realized if that individual was in baseball and glee club with the same classmate, that classmate is counted twice.
Is there a way to run the COUNTIFS formula above, then go through and remove duplicate values from column A?
Any ideas are very appreciated!
Thanks,
Heather
I have a spreadsheet with unique student IDs in column A. Each ID may have multiple rows with different values in column D (student activities--maybe one row is Baseball and one is Glee Club). The formula below counts all the other rows that match that row's column D (activity) and column H (class year).
Column O =COUNTIFS($D$1:$D$68861,D2,$H$1:$H$68861,H2,$A$1:$A$68861,"<>"&A2)
I want the next column to total up all the people each ID matched with across multiple activities. I was doing this: =SUMIF($A$1:$A$68861,A2,$O$1:$O$68861) but then I realized if that individual was in baseball and glee club with the same classmate, that classmate is counted twice.
Is there a way to run the COUNTIFS formula above, then go through and remove duplicate values from column A?
Any ideas are very appreciated!
Thanks,
Heather