Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,907
- Office Version
- 365
- Platform
- Windows
Hi All
I am battling to find a solution to this and perhaps not asking the right question in Google as I still cannot seem to find the answer.
I have a dataset with many columns. One column denotes a unique ID for each row. The other column values are shared with many other records. What I want to do is get the instance # of each record based on all columns except the unique ID (as in that case each row would constitute a unique instance).
I can get the instance based on the common columns, but then I don't know how to pair these back with the original unique ID's.
For example:
All instances are unique except ID 4, which shares the same attributes as ID 3 (Attrib1, Attrib2, Attrib3).
It's the instance column that I am having a tough time figuring out. I can get it if I discard the Unique ID, but that is a critical key that I need to retain. Any ideas?
Many thanks
Jon
I am battling to find a solution to this and perhaps not asking the right question in Google as I still cannot seem to find the answer.
I have a dataset with many columns. One column denotes a unique ID for each row. The other column values are shared with many other records. What I want to do is get the instance # of each record based on all columns except the unique ID (as in that case each row would constitute a unique instance).
I can get the instance based on the common columns, but then I don't know how to pair these back with the original unique ID's.
For example:
Unique ID | Attrib1 | Attrib2 | Attrib3 | Instance |
1 | A | X | 10 | 1 |
2 | A | Y | 15 | 1 |
3 | B | X | 20 | 1 |
4 | B | X | 20 | 2 |
5 | C | Y | 30 | 1 |
All instances are unique except ID 4, which shares the same attributes as ID 3 (Attrib1, Attrib2, Attrib3).
It's the instance column that I am having a tough time figuring out. I can get it if I discard the Unique ID, but that is a critical key that I need to retain. Any ideas?
Many thanks
Jon