Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a very large list of numbers that range in size from 9-17 characters. I need to add periods to make them compatible with a specific program.

Example: 1000409180201 --> 10004.09.18.02.01

Is there a way to do this with custom formatting or VBA?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

With your data in A1 , in another cell enter:

=LEFT(A1,5) & "." & MID(A1,6,2) & "." & MID(A1,8,2) & "." & MID(A1,10,2) & "." & RIGHT(A1,2)
share|improve this answer
    
You're my hero. Thank you!! –  Sarah Mar 29 at 0:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.