Given a spreadsheet cell containing a string that consists of a hyphenated series of character segments, I need to extract the fourth segment.
For example, consider column A containing data strings like XX-XXX-X-G10-XX-XXX, where X denotes any character. What formula would I need to place in column B to get G10 as a result?
A B
1 XX-XXX-X-G10-XX-XXX G10
I'm looking for a formula that could work in in Libre Office Calc, Open Office Calc, MS Excel, or Google Sheets.