+ Reply to Thread
Results 1 to 5 of 5

Converting text col to numbers if necessary

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Converting text col to numbers if necessary

    I have 3 sheets. On each of the sheets there is a col labeled LOT#. Most of the time the values in the col for Lot# are numbers. However, some of the time the values are actually "text". Is there a way to test to see if the numbers are "text" and if so is there an efficient way to convert the col of values to numbers?

    any help would be appreciated.

    thanks.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,378

    Re: Converting text col to numbers if necessary

    Hi,

    Add a zero to all the numbers and they will convert to numbers. Do this in a separate column and then copy and paste values only back over the original.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Converting text col to numbers if necessary

    Hi welchs101

    You don't indicate what or how your doing what you're doing...if you're using VBA to reference the cell, you might try
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Converting text col to numbers if necessary

    I came up with the following code

    Please Login or Register  to view this content.
    The first part just converts range to "number format" 2nd part actually converts text to number...........but its really really slow.........is there a faster way?

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Converting text col to numbers if necessary

    i assume there is not faster more efficient way to do this ........right?

+ 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