How to insert character in middle of cell data

belldog

New Member
Joined
Aug 3, 2008
Messages
20
I need to insert a "." into a column of cells. What is the best way to do this?

Example: Existing data 1000UG01
Needs to be 1000UG.01

Existing cells are all the same length and the "." needs to be inserted in the same place.

Thanks in advance for any help.
 

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.
Assuming they are in column A, in a spare column enter the formula

=LEFT(A1,6)&"."&RIGHT(A1,2)

and fill down as far as needed. Copy the cells in the new column, select the original data, Edit > Paste Special, tick Values and click OK. Delete the spare column.
 
Upvote 0
Can this solution be reframed in the form of a macro, where i have the option to put the source values in a text box and get the result in the adjecent cells.
 
Upvote 0
Do you have lots of textboxes on your sheet, why not just use cells? Otherwise, what do you mean by adjacent cells? Do you also need to insert a period at the 7th character or what? Please provide more details.
 
Upvote 0
i too would like this in the form of a macro. If it could add a hyphen ("-") after the fourth digit of all cells in a selected range, that would be great.
 
Upvote 0
i too would like this in the form of a macro. If it could add a hyphen ("-") after the fourth digit of all cells in a selected range, that would be great.

or even better, if it could search for the first 3 digits of the cells in a range, and then add the hyphen if the search matches.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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