+ Reply to Thread
Results 1 to 4 of 4

leaving only numbers in the cell

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    leaving only numbers in the cell

    Hi.

    I need to remove bars, dashes, commas, at once inside a cell.
    Exemple:
    ----Original---------------Result
    25.569.589/0001-68--25569589000168

    i try ...don't work....# VALUE!

    Please Login or Register  to view this content.
    Last edited by marreco; 06-24-2012 at 09:02 AM.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: leaving only numbers in the cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    array entered will get up to 15 digits
    in 2007 or later this should also work again array entered
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    in both cases format cell number no decimals
    or even this udf
    Please Login or Register  to view this content.
    use as =numbers(A1)
    all this learnt for here
    http://www.mrexcel.com/forum/showthr...-not-clustered
    Last edited by martindwilson; 06-24-2012 at 09:52 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: leaving only numbers in the cell

    Hi.
    works perfect.
    could explain the code?
    thank you!

  4. #4
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: leaving only numbers in the cell

    Quote Originally Posted by marreco View Post
    Hi.
    I need to remove bars, dashes, commas, at once inside a cell.
    Exemple:
    ----Original---------------Result
    25.569.589/0001-68--25569589000168
    i try ...don't work....# VALUE!
    you should change to that:

    Please Login or Register  to view this content.
    Last edited by tigertiger; 06-24-2012 at 09:11 AM.
    Best regard, -)iger-/iger
    If you are pleased with a solution mark your post SOLVED.

+ 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