+ Reply to Thread
Results 1 to 2 of 2

How to parse data

  1. #1
    bdwood
    Guest

    How to parse data

    We start with a cell(s) containing 13 to 15 characters, with no spaces:
    1234567100AAAAA, 123456710AAAAA, 12345671AAAAA. We want the format to be
    1234567-100-AAAAA, 1234567-10-AAAAA, 1234567-1-AAAAA. The first 7 characters
    always belong together, and the last 5 characters always belong together. It
    is the middle 1 -3 that varies. How can this be done? Thank you.

  2. #2
    bigwheel
    Guest

    RE: How to parse data

    Try this formula:-

    =LEFT(A1,7)&"-"&MID(A1,8,LEN(A1)-12)&"-"&RIGHT(A1,5)

    Assumes your data starts in A1. Then copy down.

    "bdwood" wrote:

    > We start with a cell(s) containing 13 to 15 characters, with no spaces:
    > 1234567100AAAAA, 123456710AAAAA, 12345671AAAAA. We want the format to be
    > 1234567-100-AAAAA, 1234567-10-AAAAA, 1234567-1-AAAAA. The first 7 characters
    > always belong together, and the last 5 characters always belong together. It
    > is the middle 1 -3 that varies. How can this be done? Thank you.


+ 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