+ Reply to Thread
Results 1 to 8 of 8

rearrange the value of the entry

  1. #1
    Registered User
    Join Date
    09-29-2019
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    rearrange the value of the entry

    I have excel sheet with around 2000 entry that I need to change them all at once.
    Eace row begins with
    AC-DF-01
    AC-SW-02
    AC-JK-04
    AC-QQ-05
    AC-DF-06
    AC-VW-07

    I need to rearrange the coding of these entry to make the digits before the middle letter: AC-01-DF instead of AC-DF-01
    Is there any code in VB or excel can do it for me automatically?

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: rearrange the value of the entry

    You can't make the changes on the fly with a formula, but you can get the format you want in an adjacent column and then copy-paste values over the originals - is this something you could work with?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-29-2019
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: rearrange the value of the entry

    Thank you for your reply, Ali. That would be good choice.
    But how could I split and rearrange the value to the new column?

    Regards,
    Last edited by AliGW; 02-19-2020 at 05:18 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: rearrange the value of the entry

    Like this:

    =LEFT(A1,3)&RIGHT(A1,2)&MID(A1,3,3)

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: rearrange the value of the entry

    Ali, didn't you forget the hyphens ?

    Please Login or Register  to view this content.
    Just for fun.

    Please Login or Register  to view this content.
    Last edited by bakerman2; 02-19-2020 at 05:48 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: rearrange the value of the entry

    No - they are included. Did you try it?

    Your adaptation of mine duplicates the hyphens:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    AliGW
    Rudi
    2
    AC-DF-01 AC-01-DF AC--01--DF
    3
    AC-SW-02 AC-02-SW AC--02--SW
    4
    AC-JK-04 AC-04-JK AC--04--JK
    5
    AC-QQ-05 AC-05-QQ AC--05--QQ
    6
    AC-DF-06 AC-06-DF AC--06--DF
    7
    AC-VW-07 AC-07-VW AC--07--VW
    Sheet: Sheet2
    Last edited by AliGW; 02-19-2020 at 05:47 AM.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: rearrange the value of the entry

    Sorry Ali, my bad. Didn't take notice of the numbers in the functions.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: rearrange the value of the entry

    More coffee, Rudi?

+ 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. Replies: 3
    Last Post: 01-25-2020, 05:52 PM
  2. Replies: 2
    Last Post: 01-25-2020, 04:49 PM
  3. [SOLVED] Rearrange Last name, First name >>> First Name/Last Name
    By thursday140 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2017, 10:33 AM
  4. Replies: 4
    Last Post: 03-21-2014, 12:01 AM
  5. Rearrange columns
    By Drigomaniac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2013, 01:02 PM
  6. I need to rearrange a lot of data
    By dionnmj1 in forum Excel General
    Replies: 2
    Last Post: 08-27-2012, 09:18 AM
  7. Rearrange Data
    By Madan in forum Excel General
    Replies: 4
    Last Post: 03-10-2010, 01:38 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