+ Reply to Thread
Results 1 to 3 of 3

Manipulating strings

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Glasgow
    MS-Off Ver
    Excel 2003 SP3
    Posts
    45

    Question Manipulating strings

    Hey there, I have a excel sheet where I have a list of strings seperated by a "-". I am looking to take the particular cell value and swap the characters before the dash with the characters after the dash. So for example:


    FG03-FJ04 would become FJ04-FG03
    AB02-CD12 would become CD12-AB02 and so forth....

    I have tried findling around with the split function but cant seem to get anywhere, does anyone know a tried and tested method of doing this? I would normally attach an excel sheet but I feel this might not be neccesary, although I could attach an example if requested.

    Thanks for your help,

    Jag
    Last edited by therealjag; 01-29-2010 at 08:33 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Manipulating strings

    If your data is always of that format, then Split should work:
    Please Login or Register  to view this content.
    for example.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    09-08-2009
    Location
    Glasgow
    MS-Off Ver
    Excel 2003 SP3
    Posts
    45

    Re: Manipulating strings

    You are a genius thanks for your help...

    heres how that function ended up, I just needed it for 1 string and then that same method to return the same string swapped:

    Please Login or Register  to view this content.
    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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