+ Reply to Thread
Results 1 to 3 of 3

Changing a string of data into another format.

  1. #1
    Registered User
    Join Date
    02-05-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    2

    Changing a string of data into another format.

    At work I receive a messy string of data in the wrong format for how I need it , was wondering if anyone could figure out a formula/formulas to change it.

    I receive the data in the following format , where X represents a random letter and 1 is a random number.

    XXX/11111.1.1

    Just to make mattter worse sometimes the 3 letters at the front is only 2 letters , and the whole sequence is occasionally followed "/[Name]".

    The format I need is 11111-0001-1.

    For example "ATR/18691.2.7/Bell" , should be "18691-0002-7".

    Im not even sure if this is possible however if it is can someone save me as it drives me insanse.

    Cheers

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Changing a string of data into another format.

    Try this
    Enter in B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 ATR/18691.2.7/Bell 18691-0002-7
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Changing a string of data into another format.

    Hi all- here's a macro that extracts the number sections in column A using regEx and puts them column B.
    Change the highlighted parts to reference your data column:
    Please Login or Register  to view this content.
    Last edited by leelnich; 02-05-2018 at 02:29 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula that displays data from Changing String References
    By lotion4eva in forum Excel General
    Replies: 1
    Last Post: 03-28-2016, 02:34 AM
  2. Replies: 0
    Last Post: 11-20-2015, 12:34 PM
  3. Reading a string and changing data in a different cell
    By TheSiege82 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-03-2014, 11:00 PM
  4. Changing date format in a text string
    By rsmith10 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2014, 09:46 AM
  5. Changing data from one format into another
    By ramanan256 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2010, 08:04 PM
  6. Changing format of data
    By keesberbee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2006, 12:10 PM
  7. [SOLVED] Changing data format
    By frustratedwthis in forum Excel General
    Replies: 3
    Last Post: 05-11-2005, 03:06 PM

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