HI all,
Thankyou for your suggestions so far
The numbers I gave in my original post were just examples but they follow the same format to what I will be using.
The first 6 digits are always followed by a "-" then more more digits follow. The formula needs to extract the "-" just leaving all the digits with no gap so they become a unique number on their own. The number of digits before the "-" will be 6 but at some point will increase to up to 8 although it will be a long time before they go that far.
However the number of digits after the "-" could be anything from a single digit all the way up to 4 digits long so the formula needs to be able to take this into account.
123456-10 needs to be converted to 12345610
1234567-11 needs to be converted to 123456711
12345678-999 needs to be converted to 12345678999 etc
FIND REPLACE function can be used but would be too manual. Needs to done via a formula so that it's done automatically behind the scenes.
I'm aware of Excels Flash fill function and this was how I thought I'd go with this but with all the variations in what numbers I could be face with its not a option.
=REPLACE(A1,7,1,"") wouldn't cover all the variations as it relies on the "-" being the 7th character. That works at the moment but as soon as the first number move to 7 and 8 digits before the "-" I'd have to alter the formula and for quite some time I'd have a mixture of all those variations.
=SUBSTITUTE(A1,"-","")+0 round the issue so I'm going to have a play with that when I get into the office on Monday.
Once again thankyou for all all your suggestions.
Will update on Monday