+ Reply to Thread
Results 1 to 4 of 4

How to Insert Dashes

  1. #1
    childofthe1980s
    Guest

    How to Insert Dashes

    Hello:

    In various cells, I have such data as "1000001p" How can I have Excel
    automatically change it to "1000-001P" or even "1000-001-P"?

    You see, I need dashes inserted and I need the last alpha character to be
    capitalized.

    Thanks!

    childofthe1980s

  2. #2
    Don Guillett
    Guest

    Re: How to Insert Dashes

    Have a look in HELP index for MID

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "childofthe1980s" <[email protected]> wrote in
    message news:[email protected]...
    > Hello:
    >
    > In various cells, I have such data as "1000001p" How can I have Excel
    > automatically change it to "1000-001P" or even "1000-001-P"?
    >
    > You see, I need dashes inserted and I need the last alpha character to be
    > capitalized.
    >
    > Thanks!
    >
    > childofthe1980s




  3. #3
    Toppers
    Guest

    RE: How to Insert Dashes

    Hi,
    Assuming data in A1, put the following in B1:

    =TEXT(LEFT(A1,LEN(A1)-1),"0000-000-") & UPPER(RIGHT(A1,1))

    Change the "0000-000-" to suit your needs.

    HTH


    "childofthe1980s" wrote:

    > Hello:
    >
    > In various cells, I have such data as "1000001p" How can I have Excel
    > automatically change it to "1000-001P" or even "1000-001-P"?
    >
    > You see, I need dashes inserted and I need the last alpha character to be
    > capitalized.
    >
    > Thanks!
    >
    > childofthe1980s


  4. #4
    Jim Thomlinson
    Guest

    RE: How to Insert Dashes

    Here is a formula. It assumes that 10000001p is in Cell A1

    =LEFT(A1,5)&"-"&MID(A1,6,3)&"-"&UPPER(RIGHT(A1,1))

    --
    HTH...

    Jim Thomlinson


    "childofthe1980s" wrote:

    > Hello:
    >
    > In various cells, I have such data as "1000001p" How can I have Excel
    > automatically change it to "1000-001P" or even "1000-001-P"?
    >
    > You see, I need dashes inserted and I need the last alpha character to be
    > capitalized.
    >
    > Thanks!
    >
    > childofthe1980s


+ 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