I need to build a single Excel formula for calculating the third column in the table below based on the previous two columns.
- First column shows the name of the active user
- Second column shows which week number the activity occurred
- The third column should in every row show the total number of unique weeks that the user in the first colum has been active ever.
------------------------------------------------
NAME ACTIVE-IN-WEEK-NO NUM-UNIQUE-ACTIVE-WEEKS (Need a formula for this one)
------------------------------------------------
JOHN | 50 | 2
ADAM | 48 | 3
PETER | 48 | 1
JOHN | 50 | 2
JOHN | 50 | 2
ADAM | 45 | 3
ADAM | 40 | 3
PETER | 48 | 1
JOHN | 45 | 2
-------------------------------------------------