I have a cell in which the user enters their name, a serial number and the a configuration number. I want to extract that 8 digit serial number to use in a filename.
The cell would look something like this:
Operator: Jon Doe Date: 07/02/12 S/N:12345678 Cfg:1
I only know how to parse a fixed length (e.g. value(mid(A1,5,6)) of text but since name of the user always changes, the length of the text would change.
What function(s) could I use to always guarantee I will only get that 8 digit serial number out?
Try this Excel Formula.
Assuming that the value
Jon Doe Date: 07/02/12 S/N:12345678 Cfg:1is in cell A1. Put the above formula in B1If you still want the VBA Code then you can try this