2 replies
by dmauk Accepted solution
by tonythetiger Accepted solution
Put '00-000-00-000-0000 in a hidden cell, let's name that cell "Template"
The user types in the first column, Call it column A
The resulting value will be in the next column, call it Column B
In the top cell of column B:
IF(A1="","",LEFT(A1,LEN(A1))&RIGHT(Template,LEN(Template)-LEN(A1)))
(all on one line)
then copy the value down as many rows as you need. This column should be write protected.
What it does
If A1 is blank (nobody has typed anything in yet), B1 is blank
If A1 has x characters, B1 has that character, plus the right-most 18-x characters of "Template"
if the length of A1 is more than 18 characters, B1 will show a #VALUE error.
(If you find this useful, please mark it with a thumb so that others can more easily find it)
This discussion is closed to new replies.
Trending Software posts
Sort by Trending