I need to pull the 7 digit number, 5 digit number and 9 digit (including a hyphen)
example string:
| Headers |
|---|
| User ID: 12345, Claim No: 1234567, Invoice No: 1-12345678 |
| Claim No: 1234567,User ID: 12345, Invoice No: 1-12345678 |
| Invoice No: 1-12345678, Claim No: 1234567,User ID: 12345 |
I have tried the below for 7 digit number but this pulls the first 7 digits it finds (and not the actual 7 digit number)
=MID(Q6,SEARCH(REPT(0,7),CONCAT(IFERROR(MID(Q6,SEQUENCE(LEN(Q6)),1)*0,2))),7)



