+ Reply to Thread
Results 1 to 2 of 2

Copy part of text from on column to another and delete it.

Hybrid View

  1. #1
    Registered User
    Join Date
    02-25-2021
    Location
    Copenhagen, Denmark
    MS-Off Ver
    O365
    Posts
    1

    Arrow Copy part of text from on column to another and delete it.

    Hi,

    I'm trying to copy part of a text from one column (A) into another column (B) and then delete the text I've copied from column A.
    Column A looks something like this:

    John Johnson - 5R
    Rob Robson - 7F
    Joe Smith - 9Z

    its the part after the - I need.

    Thanks in advance.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Copy part of text from on column to another and delete it.

    You can extract the final part using this in B2:

    =MID(A2,FIND(" - ",A2)+3,10)

    You might need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    You could also use Text-to-Columns with - as the delimiter.

    Hope this helps.

    Pete

+ 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 to delete part of the text
    By thlee1122 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-18-2015, 06:10 PM
  2. VBA to delete part of text string
    By Chrisbrough88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-15-2014, 06:58 AM
  3. [SOLVED] Delete a row if a cell contains certain text as part of a text string
    By Steve2107 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2014, 07:49 PM
  4. Copy part of a row to a new sheet then delete whole row based on text value
    By badgerboy13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 12:31 PM
  5. [SOLVED] Delete part of a text in cells.
    By Jeffy14 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-15-2012, 02:36 PM
  6. How do I delete part of the text in a cell?
    By daveofgv in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2011, 10:59 PM
  7. delete middle part of text string
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2009, 03:59 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