Thanks everyone for your replies but i managed to achieve what I wanted in Excel in the end with no complicated vba functions.
Attached is all I wanted to do, it really didnt need to become so complicated.
I then used the attached to update the Operation number in my table. Simples :)