+ Reply to Thread
Results 1 to 5 of 5

Macro to convert text number to digital number

  1. #1
    Forum Contributor
    Join Date
    09-19-2003
    Posts
    226

    Macro to convert text number to digital number

    Hi

    I am attaching a file. There is a list of numbers that are text and I need to convert them to digital. The numbers are 75 55555 and five spaces at the end of the number on the right. When I delete the five "spaces" at the end and remove the space between the number on the left and the number on the right, the resulting number moves to the right of the cell. It's tedious to do each number in that fashion. I have over ten thousand numbers.

    Appreciate your help.

    Patish
    Attached Files Attached Files
    Patish

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to convert text number to digital number

    In B1, put the formula and drag it down

    Please Login or Register  to view this content.
    This remove the space and then you can value to convert them in to value. See attached.
    Attached Files Attached Files
    Last edited by AB33; 11-16-2014 at 09:13 AM.

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Macro to convert text number to digital number

    you'll also need to put VALUE() around that ie
    Please Login or Register  to view this content.
    to truly turn it into a number

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

    Re: Macro to convert text number to digital number

    find/replace
    find space
    replace with nothing worked for me
    "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

  5. #5
    Forum Contributor
    Join Date
    09-19-2003
    Posts
    226

    Re: Macro to convert text number to digital number

    I thank you gentlemen for your time and knowledge!! (Y)

+ 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] Excel macro to convert text to number
    By badrum in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2014, 12:33 PM
  2. [SOLVED] VBA Macro to convert text to number
    By Pho6 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-13-2013, 02:04 AM
  3. Macro to convert text to number
    By Wgmoneill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2012, 02:12 PM
  4. Convert a number formatted as text to a number in a macro
    By MACRE0 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2005, 09:51 PM
  5. [SOLVED] Help - Excel 97 Macro convert Text to Number
    By John Thomas Smith in forum Excel General
    Replies: 6
    Last Post: 10-04-2005, 03: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