I need a formula or macro that can extract a code in the format “03 30 00” from various data in text format in multiple variations, such as;
The code numbers and text will vary and the codes could begin with numbers between “00” through “50” and sometimes will have more than 6 numbers, but I am just trying to extract the first 6 numbers with the two blank spaces in the format “xx xx xx”.
- “033000 CAST-IN-PLACE CONCRETE”
- “Section 03 30 00 CAST-IN-PLACE CONCRETE”
- “03 30 00 CAST-IN-PLACE CONCRETE”
- “ 03 3000 CAST-IN-PLACE CONCRETE” with a leading blank space or spaces
- Section 03 3000 - CAST-IN-PLACE CONCRETE
- Section 12 3661.19 - Quartz Agglomerate Countertops (here I would want “12 36 61”)
The code numbers and text will vary and the codes could begin with numbers between “00” through “50” and sometimes will have more than 6 numbers, but I am just trying to extract the first 6 numbers with the two blank spaces in the format “xx xx xx”.