I Need to extract invoice with multiple formats, with formula

gad3lha

New Member
Joined
Jun 1, 2023
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi friends,

I need to extract all invoices numbers from a column with differents formats, like below:

Column
F. 93005775 - ABC - DEF - 883
F. 369 - ABC - DEF - 883
PAGO F. 16317-A - ABC -

I wanna to extract just numbers with starts with "F.".

As we can see, each invoice number have differents quantity of numbers.

Thanks a lot.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
gad3lha, Good afternoon.

Try to use this formula:

Excel Formula:
 =TRIM(MID(A1; SEARCH("F. ";A1)+3; SEARCH("-";A1)-(SEARCH("F. ";A1)+3)))

Please, tell us if it worked as you desire.

I hope it helps.
 
Upvote 0
gad3lha, Good afternoon.

Try to use this formula:

Excel Formula:
 =TRIM(MID(A1; SEARCH("F. ";A1)+3; SEARCH("-";A1)-(SEARCH("F. ";A1)+3)))

Please, tell us if it worked as you desire.

I hope it helps.
Thanks a lot Marcílio, worked very well.

You saved me a lot of hours in my day.

Saudações Brasileiras!!!
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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