I have the following text, and I'd like to pull the PO number. Sometimes it starts with the words PO, sometimes it doesn't. If it doesn't, then PO number will start with either 901 or 902.
PO or PO Number starts may start in the beginning, middle or at the end. There'll always be a space "delimter" in the beginning and/or at the end
sometexthere sometext 123 90112345 sometext
some text PO90199 sometexthere
some 90 1 901999999 sometext
sometexthere 902123456
sometexthere PO90212334
PO902101010 sometext here
9019394 sometext here
What I'd like to extract would be
90112345
PO90199
901999999
902123456
PO90212334
PO902101010
9019394
=LET(txt,TEXTSPLIT(A1," "),FiLTER(txt,ISNUMBER(MATCH(LEFT(txt,3),{"PO9","901","902"},0))))
But there are other ways to split on the space for version without TEXTSPLIT.