vintage18K
New Member
- Joined
- Sep 20, 2018
- Messages
- 1
Hello- Thanks in advance for any assistance.
Looking to have a column in excel which calculates the number of times a name appears weekly in a data set over time and assigns an integer to the name.
The "Occurrence" column would auto populate the above target value.
I was using '= COUNTIF($A$1:$1,1)' and it was working fine but duplicates have started to occur weekly in the data which has thrown off the weekly count. In the below example Joe populated in March once and May two times. In the below example Joe would get a 1 assigned to him for the first month he occurred in March and a 2 assigned to each occurrence in May [My COUNTIF formula would have counted Joe's 3rd time in the column as a 3 when technically it should be listed as a 2 since its the 2nd week he populated]
Conditions: I cannot delete any of the data set.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]Value[/TD]
[TD="align: center"]Occurrence (Future state)[/TD]
[/TR]
[TR]
[TD="align: center"]03.01.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]03.01.2018[/TD]
[TD="align: center"]Steve[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]03.01.2018[/TD]
[TD="align: center"]Paul[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]05.08.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]05.08.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]05.08.2018[/TD]
[TD="align: center"]Chris[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]06.15.2018[/TD]
[TD="align: center"]Chris[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]06.15.2018[/TD]
[TD="align: center"]Paul[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]06.15.2018[/TD]
[TD="align: center"]Paul[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]07.22.2018[/TD]
[TD="align: center"]Chris[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]07.22.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]07.22.2018[/TD]
[TD="align: center"]Sam[/TD]
[TD="align: center"]1[/TD]
[/TR]
</tbody>[/TABLE]
Looking to have a column in excel which calculates the number of times a name appears weekly in a data set over time and assigns an integer to the name.
The "Occurrence" column would auto populate the above target value.
I was using '= COUNTIF($A$1:$1,1)' and it was working fine but duplicates have started to occur weekly in the data which has thrown off the weekly count. In the below example Joe populated in March once and May two times. In the below example Joe would get a 1 assigned to him for the first month he occurred in March and a 2 assigned to each occurrence in May [My COUNTIF formula would have counted Joe's 3rd time in the column as a 3 when technically it should be listed as a 2 since its the 2nd week he populated]
Conditions: I cannot delete any of the data set.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]Value[/TD]
[TD="align: center"]Occurrence (Future state)[/TD]
[/TR]
[TR]
[TD="align: center"]03.01.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]03.01.2018[/TD]
[TD="align: center"]Steve[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]03.01.2018[/TD]
[TD="align: center"]Paul[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]05.08.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]05.08.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]05.08.2018[/TD]
[TD="align: center"]Chris[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]06.15.2018[/TD]
[TD="align: center"]Chris[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]06.15.2018[/TD]
[TD="align: center"]Paul[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]06.15.2018[/TD]
[TD="align: center"]Paul[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]07.22.2018[/TD]
[TD="align: center"]Chris[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]07.22.2018[/TD]
[TD="align: center"]Joe[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]07.22.2018[/TD]
[TD="align: center"]Sam[/TD]
[TD="align: center"]1[/TD]
[/TR]
</tbody>[/TABLE]