Formula Building.

Spraggs

Well-known Member
Joined
Jan 19, 2007
Messages
704
Good Evening,
I have one column with a list of approx. 4000 machine tags.

Example.... 1234-ABC-DEF-GHI-AB123

The label can be anything from four digits to twentyfour digits (including "-")
The constant within the labelling are:
Dependant on label length there is always a "-" at the 5th, 9th, 13th , & 17th position.

So... assume the above machine tag is in cell A2, in cell B2 I want a formula that will give me a result 1234-ABC-DEF-GHI

Hence I want the formula to always remove the last "-" and anything after it.

Thanks Jase
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,224,598
Messages
6,179,814
Members
452,945
Latest member
Bib195

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