+ Reply to Thread
Results 1 to 18 of 18

how to delete part of a string in a row

  1. #1
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    how to delete part of a string in a row

    i want to delete a part of a long string. how can i accomplish this. kindly see the attached file.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: how to delete part of a string in a row

    Hi sumesh,

    Find the attached with your answer.

    The formula looks like this:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: how to delete part of a string in a row

    Hi, Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: how to delete part of a string in a row

    =trim(right(substitute(b2,"– ",rept(" ",99)),99))
    Attached Files Attached Files
    Last edited by azumi; 10-23-2014 at 01:36 AM.

  5. #5
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    MarvinP, your formula works fine. but when i -copy -paste special -formula -it gives error. i ahve to edit A2 to B2 then only it will give the result. when we -copy =pastespecial -formula it should adopt to the new cell address????see the attachement pls
    Attached Files Attached Files
    Last edited by sumesh56; 10-23-2014 at 01:31 AM.

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: how to delete part of a string in a row

    Change the cell ref A2 to B2

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: how to delete part of a string in a row

    okay I think this is very easy...
    Simple Find and Replace will do the job..

    Try find "*– "(without Quotes) and replace it will nothing..
    the is not a normal hypen(-), copy and paste the above portion without quotes and replace it with nothing..

    will definitely do the job..



    Regards,
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  8. #8
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    Quote Originally Posted by Vikas_Gautam View Post
    okay I think this is very easy...
    Simple Find and Replace will do the job..

    Try find "*– "(without Quotes) and replace it will nothing..
    the is not a normal hypen(-), copy and paste the above portion without quotes and replace it with nothing..

    will definitely do the job..



    Regards,
    hi vikas,thanks for the direction. i was trying "find and replace" for several times. since i could only put a normal hypen it was not yeilding the required result. now that when i copy pasted the splcharacter it worked fine. i would like to ask you where on my keyboard can i find the spl character which is "hyphen- like" but NOT A HYPHEN. thanks

  9. #9
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    in this example ,how can I get the first part only?



    01 – Oru Ragam – hwh.tantryum.om.mp3
    02 – Enge En – jen.tantryum.om.mp3
    03 – Thendral Vandhu – jtj.tantryum.om.mp3

    I expect to get the result as

    Oru Ragam .mp3
    Enge En .mp3
    Thendral Vandhu .mp3
    Last edited by sumesh56; 10-23-2014 at 09:58 PM.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: how to delete part of a string in a row

    To get your "special symbol" try using the insert symbol dialog.

    http://www.howtogeek.com/163481/how-...in-excel-2013/

  11. #11
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    Quote Originally Posted by MarvinP View Post
    To get your "special symbol" try using the insert symbol dialog.

    http://www.howtogeek.com/163481/how-...in-excel-2013/
    thanks for the direction

  12. #12
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    Quote Originally Posted by boopathiraja View Post
    Change the cell ref A2 to B2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    kindly refer to post no.5 wherein i have pointed out as how to rectify it.
    PHP Code: 
    the querry was how it gave error

  13. #13
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    Quote Originally Posted by sumesh56 View Post
    in this example ,how can I get the first part only?



    01 – Oru Ragam – hwh.tantryum.om.mp3
    02 – Enge En – jen.tantryum.om.mp3
    03 – Thendral Vandhu – jtj.tantryum.om.mp3




    Oru Ragam .mp3
    Enge En .mp3
    Thendral Vandhu .mp3
    pls help me in this issue

  14. #14
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Cool Re: how to delete part of a string in a row

    Here is what you wanted...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Check the attached file..
    Attached Files Attached Files

  15. #15
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Cool Re: how to delete part of a string in a row

    Here is one more alternative to this...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    check the attached file..
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    Quote Originally Posted by Vikas_Gautam View Post
    Here is what you wanted...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Check the attached file..
    hai Vikas,
    thank you very much. this is what i was searching for. have a nice day.

  17. #17
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    542

    Re: how to delete part of a string in a row

    hi vikas,
    when i copy -the formula and paste-paste special-formulas------then there is ref error. why this happens? when i copy and paste the formula it should adopt to the new cell reference. in this instance why it is not so? kindly explain. thanks

  18. #18
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: how to delete part of a string in a row

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

    Change the red reference with your original one...
    and drag down..
    this one is a lot better..


    Regards,

+ 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. 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
  2. [SOLVED] How to delete a cell with part of string on other sheet ??
    By minifreak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2012, 07:11 AM
  3. delete middle part of text string
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2009, 03:59 PM
  4. Find part of string and delete
    By thedivvy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2009, 11:48 AM
  5. Find part of string & delete row
    By Les Stout in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-13-2005, 11:05 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