Attached is a spreadsheet
To create the required reference, I need to add the whole of the text from column A to the last three characters of the text from column B.
Therefore, data from cells A2 and B2 become ABP2122DEF.
However, there are instances were the last three characters of the references to be generated are the same and so an additional numerical character starting from 1 should be added to the end of the reference, therefore reference from cells A2 and B2 becomes ABP2122DEF1.
The numerical order should be generated based on the alphabetical order of the third character of the data in column A.
e.g.
A2 = ABP2122 - last character of reference becomes 1 - complete reference is ABP2122DEF1
A3 = ABQ2122 - last character of reference becomes 2 - complete reference is ABQ2122DEF2
A4 = ABR2122 - last character of reference becomes 3 - complete reference is ABR2122DEF3
The expected reference numbers are shown in column E.
Not sure if this generation of reference numbers can be achieved in the required format. Thanks for viewing.
Bookmarks