Changing text data - remove/add/edit

Mattrixdesign

Board Regular
Joined
Mar 6, 2002
Messages
201
Looking to do some sort of find/replace/edit automatically for about 400 lines of data, I am not sure what this would be called so not even able to find the right function/help on XL.

E.G.

This is the part number I have "aaaabbccccdddd"

I want the result to remove "aaaa", add a prefix 1234, and add dashes, so the result looks like this "1234-bb-ccc-dddd"?

Any ideas?

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Assuming the strings are all the same length and your question is accurately presented, assuming the first string is in A1, put this formula in row1 in an empty cell, then copy down the 400 rows:

="1234-"&MID(A1,5,2)&"-"&MID(A1,7,4)&"-"&MID(A1,11,4)
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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