My understanding of formula in Calc is basic and nil with regex so I am having problems trying to resolve this problem.
I have a LO Calc (CSV file) sheet with cells which contain a British National Grid reference. For example:
[A1] Buster Camp SP 591199, area, notes
[A2] Buster Camp 2 ST 255035
[A3] Highcloud TQ 435605
The reference is not always in the same place and not always preceded by or followed by a particular punctuation mark.The multiple spaces are a feature of the dataset but are not a consistent number of spaces across cells. Sometimes, as in the first example above, the data is followed by another word or words.
The data I need extracted is the two-letter, six-digit string SP 591199 - the two-letter, six-digit format is consistent but may also appear without the space as SP591199.
The variety of in how each cell is written means that Text to Columns will not work (or not in any setting that I can find). Can this be achieved with FIND, SEARCH or another function?