I am building a Excel form where my users will input a part number like 12345678. I want to format it so it looks like 1234-56-78. So far no problem (substitute function). The problem is that sometime the part number is 9 or more digits long like 1234567890. The output should then be 1234-56-7890.
How do I accomplish this?
Thanks in advance
How do I accomplish this?
Thanks in advance