I've seen this answered before but it was always for the text between the first and second hyphen (I need the text that's between the second and third hyphen).
This is what I found that returns the text between first and second hyphen:
Mid([Barcode],InStr([Barcode],"-")+1,(InStr(InStr([Barcode],"-")+1,[Barcode],"-") -InStr([Barcode],"-"))-1)
My text string (sample) is like this:
11.5RT-10B53A-2233-050716-SP-55-105.0-125
What I need returned is 2233
Thanks for any help
This is what I found that returns the text between first and second hyphen:
Mid([Barcode],InStr([Barcode],"-")+1,(InStr(InStr([Barcode],"-")+1,[Barcode],"-") -InStr([Barcode],"-"))-1)
My text string (sample) is like this:
11.5RT-10B53A-2233-050716-SP-55-105.0-125
What I need returned is 2233
Thanks for any help