=LEFT(A1,1)&"."&MID(A1,2,3)&"."&MID(A1,5,3)&"."&MID(A1,8,3) can do the job if your text if A1
Regards Rahul On Tue, Sep 30, 2008 at 4:23 PM, <[EMAIL PROTECTED]> wrote: > > I need a macro that will add periods at specific locations in a cell > of text in Excel. My example is an item number f123456789 that I need > to look like f.123.456.789. Any suggestions? I have code written but > it is bulky and I know there is an easier way. Thanks for any and all > help. > > > > --~--~---------~--~----~------------~-------~--~----~ Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To post to this group, send email to excel-macros@googlegroups.com For more options, visit this group at http://groups.google.com/group/excel-macros?hl=en Visit & Join Our Orkut Community at http://www.orkut.com/Community.aspx?cmm=22913620 Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com To see the Daily Excel Tips, Go to: http://exceldailytip.blogspot.com -~----------~----~----~----~------~----~------~--~---