CaptainGravyBum
Board Regular
- Joined
- Dec 1, 2023
- Messages
- 77
- Office Version
- 365
- Platform
- Windows
Book1 | |||
---|---|---|---|
A | |||
1 | SG EQUIPMENT FINAN A096031949 DDR | ||
2 | DE LAGE LANDEN LEA 24350098914 DDR | ||
Sheet1 |
Hello,
I need to extract the reference number from the text strings above, I have many rows of data that my formula needs to work on, but these two should serve as suitable examples.
The reference always sits after the second space from the right and I don't need any of the information after the first space from the right. The number isn't always the same length and the number of spaces before the reference number do change as you can see in the example, so it strongly relies on a search for the number of spaces from the right which remain the same.
I've tried various MID, LEFT, RIGHT, SEARCH combinations, but I can't quite get it to consider the variable lengths of data.
I appreciate any help you can give.