I have an excel spreadsheet that has a column, with each cell filled with pages of data stripped from a database. In each cell, 1 or 2 serial numbers may be defined. There are three known formats of serial numbers: Starting with YV and are 10 digits long. Starting with VNA and are 8 digits long. Starting with SVNA and are 9 digits long. I need to extract every copy of every serial number in that column out to a separate cell. There may be 0, 1, or 2 serial numbers in each cell, and the copied information needs to be left blank, left with a single serial number, or left with 2 serial numbers separated by a comma and a space ("VNA1234A, VNAB4321").
I don't have any code to suggest because all code I've seen in this vein is to extract an entire known word, rather than a whole word or phrase based on a few letters.
Is there some way to do this?
I'd like the serial number VNA3FB00 from the text in the picture to be copied into the F cell to the left. And if there was another serial number, to have that copied as well.