I'm not sure does this help you or not, but attached is an example how to calculate unique identifiers (column CODE) based on 2 columns of your data.
You also can drop 1st pair of comparision in formula for Col3ValNo. Then you get end part of CODE always same for same values in Column3.
|