Hi all,
I have a set of duplicates in this table and am wondering how to create a counter which starts at 1 and then counts up for every duplicate of "File #" found. For example, my table looks like this:
| File # | Code | Reg hours |
117521 | 15 | 30 |
| 142420 | 02 | 35 |
| 142420 | 10 | 35 |
| 152412 | 02 | 35 |
| 152412 | 10 | 40 |
| 152412 | 15 | 40 |
And I would like a counter that outputs something like this:
| File # | Code | Reg hours | Counter |
117521 | 15 | 30 | 1 |
| 142420 | 02 | 35 | 1 |
| 142420 | 10 | 35 | 2 |
| 152412 | 02 | 35 | 1 |
| 152412 | 10 | 40 | 2 |
| 152412 | 15 | 40 | 3 |
I tried using the multi row formula tool with "IF [Row+1:File #] = [File #] THEN 2 ELSE [ROW-1:Counter]+1 ENDIF" but it isn't really working and doesn't count past 2.
Any help at all is appreciated!
Thanks so much,
Akarsh