find specific (NF:?????) string anywhere big string

marreco

Well-known Member
Joined
Jan 1, 2011
Messages
609
Office Version
  1. 2010
Platform
  1. Windows
Hi
how find specific string anywhere big string?
DataResult
TRANSPORTADORA RODONAVES - NF: 485987 CONTRATO: 154826497 CNPJ: 154878945654654NF: 485987
TRANSP. GAMPER - CONTRATO: 1564897785 NF: 15488 CNPJ: 1564648979201NF: 1548
VENETO TRANPORTES - CNPJ: 498755613214 CONTRATO: 545648755 NF: 48599796NF: 77599796

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
There's probably a shorter way but this works

=MID(A1,FIND("NF: ",A1)+4,FIND(" ",A1&" ",FIND("NF: ",A1)+4)-FIND("NF: ",A1)-4)
 
Upvote 0
Hi

Very good!!

Thank you very mutch!!!
 
Upvote 0

Forum statistics

Threads
1,203,605
Messages
6,056,254
Members
444,853
Latest member
sam69

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