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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,224,828
Messages
6,181,209
Members
453,023
Latest member
alabaz

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