I'm wondering if someone can help me with a formula/tool to look at column ID and Acct below and create the 4th (Desired output) column? I have about 30K+ rows of data with similar information in column 2 and 3. The Desired output doesn't necessarily need to count up but needs to be unique for each id/acct group.
As you can see Desired output = 1 is all matched because row 1 and 2 has the same Acct and therefore all IDs = 57559 and 57652 are grouped.
Similar, desired output 4 is grouped because acct 148996 linked to 57570 and 57742 and 180173 links 57570 and 57706
Thanks for any help
Rich
| Row | ID | Acct | Desired output: |
| 1 | 57559 | 5234 | 1 |
| 2 | 57652 | 5234 | 1 |
| 3 | 57559 | 106788 | 1 |
| 4 | 57559 | 124003 | 1 |
| 5 | 57559 | 128661 | 1 |
| 6 | 57652 | 128661 | 1 |
| 7 | 57559 | 304506 | 1 |
| 8 | 57559 | 305162 | 1 |
| 9 | 55123 | 12345 | 2 |
| 10 | 55124 | 12345 | 2 |
| 11 | 55126 | 22345 | 3 |
| 12 | 57570 | 145365 | 4 |
| 13 | 57570 | 148996 | 4 |
| 14 | 57742 | 148996 | 4 |
| 15 | 57570 | 149016 | 4 |
| 16 | 57570 | 149024 | 4 |
| 17 | 57570 | 153963 | 4 |
| 18 | 57570 | 180156 | 4 |
| 19 | 57570 | 180173 | 4 |
| 20 | 57706 | 180173 | 4 |