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?
[TABLE="class: grid, width: 669"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Data[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]TRANSPORTADORA RODONAVES - NF: 485987 CONTRATO: 154826497 CNPJ: 154878945654654[/TD]
[TD]NF: 485987[/TD]
[/TR]
[TR]
[TD]TRANSP. GAMPER - CONTRATO: 1564897785 NF: 15488 CNPJ: 1564648979201[/TD]
[TD]NF: 1548[/TD]
[/TR]
[TR]
[TD]VENETO TRANPORTES - CNPJ: 498755613214 CONTRATO: 545648755 NF: 48599796[/TD]
[TD]NF: 77599796[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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

Forum statistics

Threads
1,223,308
Messages
6,171,329
Members
452,396
Latest member
ajl_ahmed

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