Trying to have excel scan down a column of dates and insert a value that corresponds to a changing date. As the column is scanned if there are duplicates a value of 2 would be entered in the cell adjacent to the bottom most duplicate cell leaving the the remaining adjacent cells blank. If there is not a duplicate value above then a 1 would be entered in the adjacent cell. Have tried many formulas with no success. Below is an example of the result I am looking for utilizing a snapshot of my data:
<tbody>
</tbody>
Any and all help would be greatly appreciated!!!
2/24/2015 | |
2/24/2015 | 2 |
3/31/2015 | |
3/31/2015 | 2 |
4/29/2015 | |
4/29/2015 | 2 |
4/30/2015 | 1 |
5/29/2015 | |
5/29/2015 | 2 |
6/27/2015 | |
6/27/2015 | 2 |
7/29/2015 | |
7/29/2015 | 2 |
8/28/2015 | |
8/28/2015 | 2 |
9/18/2015 | |
9/18/2015 | 2 |
10/13/2015 | |
10/13/2015 | 2 |
11/9/2015 | |
11/9/2015 | 2 |
2/13/2015 | 1 |
3/13/2015 | 1 |
4/10/2015 | 1 |
4/25/2015 | 1 |
5/30/2015 | 1 |
6/26/2015 | 1 |
7/24/2015 | 1 |
8/21/2015 | 1 |
9/20/2015 | 1 |
10/16/2015 | 1 |
11/13/2015 | 1 |
12/23/2015 | 1 |
2/14/2015 | 1 |
3/12/2015 | 1 |
2/5/2015 | 1 |
3/2/2015 | 1 |
4/22/2015 | 1 |
5/18/2015 | 1 |
6/15/2015 | 1 |
7/14/2015 | 1 |
8/4/2015 | 1 |
9/2/2015 | 1 |
10/5/2015 | 1 |
10/29/2015 | 1 |
11/17/2015 | 1 |
12/22/2015 | 1 |
7/11/2015 | 1 |
8/11/2015 | 1 |
9/13/2015 | 1 |
10/14/2015 | 1 |
11/9/2015 | 1 |
12/4/2015 | 1 |
2/20/2015 | |
2/20/2015 | 2 |
3/7/2015 | 1 |
<tbody>
</tbody>
Any and all help would be greatly appreciated!!!