Find and extract invoice number from text string

fishmonger

New Member
Joined
Jul 28, 2022
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
I am looking for a way to extract invoice number from a text string

For example in these two text string there is invoice T-123456. How can I write a formula to only extract the T-123456? Invoice number is always in the format T-six digits.
Invoice number T-123456 on December 2021
Purchase made on December 2021 invoice T-123456

Thank you
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Like this

Book1 (1).xlsx
AB
1Purchase made on December 2021 invoice T-123456T-123456
2Invoice number T-123456 on December 2021T-123456
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=MID(A1,FIND(" T-",A1)+1,8)
 
Upvote 0
Solution
Like this

Book1 (1).xlsx
AB
1Purchase made on December 2021 invoice T-123456T-123456
2Invoice number T-123456 on December 2021T-123456
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=MID(A1,FIND(" T-",A1)+1,8)
[/RANGER
Cell Formulas
RangeFormula

Like this

Book1 (1).xlsx
AB
1Purchase made on December 2021 invoice T-123456T-123456
2Invoice number T-123456 on December 2021T-123456
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=MID(A1,FIND(" T-",A1)+1,8)
Thanks a lot!
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top