Excel: Count Only Once If Another Column Has Duplicates

后端 未结 2 1166
囚心锁ツ
囚心锁ツ 2021-01-17 05:41

I am trying to create a formula that will count the number of \"Overdue\" people instead of \"Overdue\" cells. Each person has the multiple rows with their name in it. The c

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-17 06:17

    You are close, but not quite there.

    Use a countifs formula like above. Then, create a column next to it with the logic if(countcell>0, 1, 0). This will return 1 if the person has at least 1 book overdue, and 0 otherwise. Then, take the sum of that column.

    Formulas

    I have provided a screenshots of the code that we would use (the E and F columns are dates). As you can see, the G column counts how many books are overdue. The H column provides a 1 if at least 1 book is overdue for each user. Then, we can simply sum the H column to find the total number of users with overdue books.

    If this helps you, please consider choosing this as the answer.

提交回复
热议问题