Cell contains specific pattern. - Wildcards in find?

szita2000

Board Regular
Joined
Apr 25, 2012
Messages
101
Office Version
  1. 365
Platform
  1. Windows
Hi guys.

I have a database, with text strings in Column A.

Here is a 4 row sample of the data:

1.001 v08 - Able to develop Quality Manual in compliance to ISO and Corporate Requirements
1.001 v08 - Aware about Quality Management Manual
Ismeri a molding termék kiengedésének menetét - SUC 1.134 v02 TPL3.2 v01
Ismeri a raktári lerakodás és bevételezés teljes folyamatát (SOP 1.032 v03)

These are text strings where I need the number from the text #.### and the version number

I was trying to extract the numbers and then the version numbers after them but I was unable to find a formula that will handle wildcards.

I tried MID with find:
Excel Formula:
=MID($A2,FIND("?.???",$A2),5)
- But the ? wildcards doesn't seem to be working.

Is there any wildcards which will help me to pick out the 1.001 pattern from a text? (These can be anything like 4.112, 8.006 etc...)
Maybe a formula that can handle regex?

Thanks

Thomas
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi guys.

I have a database, with text strings in Column A.

Here is a 4 row sample of the data:

1.001 v08 - Able to develop Quality Manual in compliance to ISO and Corporate Requirements
1.001 v08 - Aware about Quality Management Manual
Ismeri a molding termék kiengedésének menetét - SUC 1.134 v02 TPL3.2 v01
Ismeri a raktári lerakodás és bevételezés teljes folyamatát (SOP 1.032 v03)

These are text strings where I need the number from the text #.### and the version number

I was trying to extract the numbers and then the version numbers after them but I was unable to find a formula that will handle wildcards.

I tried MID with find:
Excel Formula:
=MID($A2,FIND("?.???",$A2),5)
- But the ? wildcards doesn't seem to be working.

Is there any wildcards which will help me to pick out the 1.001 pattern from a text? (These can be anything like 4.112, 8.006 etc...)
Maybe a formula that can handle regex?

Thanks

Thomas

Is it always the first number in the string?
If so, you can use below formula

=MID(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")),9)

1664962702952.png


/Skovgaard
 
Upvote 0
Solution
Based on your sample data, this might also be a possibility.

22 10 05.xlsm
AB
1
21.001 v08 - Able to develop Quality Manual in compliance to ISO and Corporate Requirements1.001 v08
31.001 v08 - Aware about Quality Management Manual1.001 v08
4Ismeri a molding termék kiengedésének menetét - SUC 1.134 v02 TPL3.2 v011.134 v02
5Ismeri a raktári lerakodás és bevételezés teljes folyamatát (SOP 1.032 v03)1.032 v03
szita2000
Cell Formulas
RangeFormula
B2:B5B2=MID(A2,FIND(".",A2)-1,9)
 
Upvote 0
Based on your sample data, this might also be a possibility.

22 10 05.xlsm
AB
1
21.001 v08 - Able to develop Quality Manual in compliance to ISO and Corporate Requirements1.001 v08
31.001 v08 - Aware about Quality Management Manual1.001 v08
4Ismeri a molding termék kiengedésének menetét - SUC 1.134 v02 TPL3.2 v011.134 v02
5Ismeri a raktári lerakodás és bevételezés teljes folyamatát (SOP 1.032 v03)1.032 v03
szita2000
Cell Formulas
RangeFormula
B2:B5B2=MID(A2,FIND(".",A2)-1,9)
Thanks Peter.
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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