By: Masum Mahdy

In reply to Alex.

Hi Alex, it is a great pleasure for us to know that you are getting benefits from our content (and referring us to your friends too)!

Now, your answers:
1. No, you have to use the ROWS function too. Otherwise, you will not get the correct answer in other cases (your guess is true only for this particular set of data).

2. Yes. You are right. You have to use the COUNTIFS function. Use the following formula.
=COUNTIFS($B$5:$B$10,B5,$C$5:$C$10,C5,$D$5:$D$10,D5)
If you have two columns only, remove the $D$5:$D$10,D5 part from the formula, i.e. =COUNTIFS($B$5:$B$10,B5,$C$5:$C$10,C5)
Now, copy the formula down. The output number will say how many times each row is repeated.

Regards

-Mahdy
(ExcelDemy Team)