+ Reply to Thread
Results 1 to 5 of 5

Converting input into a number

  1. #1
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    Converting input into a number

    does anyone has an idea how to convert the values in this sheet to numbers. what's the best way to convert the values in the attached sheet to number using VBA code. if there is text in the row leave as text and convert the rest to numbers see attached sheet.
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Converting input into a number

    In C3 enter a "1" (without quotes).
    Copy C3.
    Select your range A1:A47.
    Select "Paste > Special > Multiply".

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Converting input into a number

    The faster way is:
    Put for example in B1 value “1” then press CTRL + C (copy) then select column A and select past special (mark multiply) and You got what you want without VBA
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Converting input into a number

    hi, walid66, as an option, run code "test"
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    Re: Converting input into a number

    Thanks for your help. It worked like a charm.

+ 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