+ Reply to Thread
Results 1 to 6 of 6

Formula to strip "-" from ID Number

  1. #1
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Formula to strip "-" from ID Number

    Looking for a formula - or Conditional formatting that will take ID as seen in Col A and remove "-" so looks like col B

    ID Final Result Formula to make A:A,B:B
    123-45-6789-123 123456789123
    234-56-7891-112 234567891112
    123-45-6789-124 123456789124
    234-56-7891-113 234567891113
    123-45-6789-125 123456789125
    234-56-7891-114 234567891114

    I've attached excel file

    Thanks in Advance for an assist
    Jim
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to strip "-" from ID Number

    Enter formula in B2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to strip "-" from ID Number

    This formula entered in B2:

    =--SUBSTITUTE(A2,"-","")

    Format as Number, 0 decimal places

    Copy down as needed
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Re: Formula to strip "-" from ID Number

    Thank you so much - again!
    We don't use SUBSTITUTE very often in our area - good formula to add to the quiver.

    Thank
    Jim

  5. #5
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Re: Formula to strip "-" from ID Number

    Thanks my friend
    This works great - what does the +0 mean at the end?

    Appreciate the assitance
    Jim

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to strip "-" from ID Number

    Quote Originally Posted by 3345james View Post
    Thanks my friend
    This works great - what does the +0 mean at the end?

    Appreciate the assitance
    Jim
    Hi Jim since SUBSTITUTE function always return text +0 will convert text string to real numbers.

+ 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. [SOLVED] Strip out numbers only from text (include ".")
    By pauldaddyadams in forum Excel General
    Replies: 3
    Last Post: 02-03-2016, 10:46 AM
  2. [SOLVED] if formula needed to populate either "1" or "0" based on number of units in another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-07-2015, 11:24 AM
  3. Outlook "Strip Attachment" macro suddenly stopped working
    By Castillb in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2014, 08:31 AM
  4. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  5. Seperate content that has "/" and strip number/symbols
    By Brian Tam in forum Excel General
    Replies: 8
    Last Post: 01-22-2011, 06:33 PM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. "Strip" Cell Formula
    By al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2005, 06:05 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