+ Reply to Thread
Results 1 to 4 of 4

Change the alphanumeric entry data into the same alphanumeric data but with spaces or dash

  1. #1
    Registered User
    Join Date
    04-20-2012
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Change the alphanumeric entry data into the same alphanumeric data but with spaces or dash

    Good day everybody!

    I'm a novice.... in many things ....Please to have some helps from all of you....

    1) What should I program or format in EXCEL 2010 for the following alphanumeric text entered by user for instant:

    65G00512707

    Into the following after the user presses the Enter button on the keyboard:

    65G 005 12 707 or 65G-005-12-707.

    2) Why is that after several file opening/saving (File created = form), the check boxes (Under Control - Developer Menu) that are put in the created form, are moved to the other unwanted location on the form ?
    Please advice.

    Regards & many thanks,
    Linda,
    the novice.

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Change the alphanumeric entry data into the same alphanumeric data but with spaces or

    Assume your text is entered in Cell D4:
    Please Login or Register  to view this content.
    I am not following your #2 and will await further clarification.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,416

    Re: Change the alphanumeric entry data into the same alphanumeric data but with spaces or

    Another method (slightly shorter)...

    =LEFT(D4,3)&TEXT(MID(D4,4,8),"-000-00-000")

  4. #4
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Change the alphanumeric entry data into the same alphanumeric data but with spaces or

    Good one, Rick.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1