Closed Thread
Results 1 to 3 of 3

3 letter format

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Toulouse
    MS-Off Ver
    Excel 2010
    Posts
    141

    3 letter format

    Hy guys i have asked for help but it didnt work , please replay only if the correct soluction
    i would to format cells a1:a10 so that if i enter for instance six letter


    aaabbb then i want it to appear aaa-bbb

    aaabbbccc , i want it to appear aaa-bbb-ccc



    i have tried this formatting : ###-###-###-###
    and didnt work


    any help please

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: 3 letter format

    In B1 you can enter this formula:

    =IF(A1="","",IF(LEN(A1)=6,LEFT(A1,3)&"-"&RIGHT(A1,3),IF(LEN(A1)=9,LEFT(A1,3)&"-"&MID(A1,4,3)&"-"&RIGHT(A1,3),A1)))

    then copy down to B10.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,740

    Re: 3 letter format

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] conditional format last letter before numbers
    By grizzly6969 in forum Excel General
    Replies: 7
    Last Post: 06-12-2012, 04:12 AM
  2. Format Cell for Capital Letter(s)
    By Roj47 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-15-2010, 02:15 PM
  3. Replies: 17
    Last Post: 07-16-2009, 03:12 AM
  4. [SOLVED] New Validation option to format 1st letter as Capital letter
    By Jeff in forum Excel General
    Replies: 5
    Last Post: 07-13-2006, 12:15 AM
  5. Format:change headers from letter to number/number to letter
    By Biff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM

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