+ Reply to Thread
Results 1 to 3 of 3

Removing prefix in number range

  1. #1
    Forum Contributor
    Join Date
    05-17-2010
    Location
    Nigeria, Owerri
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    254

    Removing prefix in number range

    Good day all,

    Please in the attached, I have a column named ST Number. All the numbers began with IC- before other values. What formular can I use to remove the prefixes (ie: IC-)? Please any contribution will be highly appreciated.


    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Removing prefix in number range

    If you want to make the change in-situ, then select the column and press CTRL+H and then replace IC- with nothing in the Replace With box... click Replace all.

    If you want a formula, then

    =Substitute(B2,"IC-","")+0 copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Removing prefix in number range

    Try this:

    • Select the column of ST NO.'s
    • Data.Text-to-columns
    ...Check: Delimited...Click: Next
    ...Check: Other..Type a dash (-) in the empty box...Click: Next
    ...Click the first column...Click: Skip this column
    ...Click: Finish

    That will remove the prefixes.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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