+ Reply to Thread
Results 1 to 14 of 14

Changing numbers entered as text into numbers

  1. #1
    Registered User
    Join Date
    02-17-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    5

    Question Changing numbers entered as text into numbers

    I have an Excel table with 4 000 rows. The data in the columns are numbers but they have been entered as text (from another database). How do I turn a column with 4 000 rows from text format into numbers format so that I can sort the numbers?

  2. #2
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Changing numbers entered as text into numbers

    Just select all and click convert to numbers from Error Checking Drop down

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Changing numbers entered as text into numbers

    there is a quick fix...

    a. put the number 1 in any empty cell other then the column with textnumbers
    b. do CTRL+C to copy that cell content
    c. select your column(s) with the 4000 textnumbers
    d. Choose pastespecial and then in the menu select multiply and press OK

    now your numbers will go from text to values again

  4. #4
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Changing numbers entered as text into numbers

    Pls see attached Pic
    Attached Images Attached Images

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,820

    Re: Changing numbers entered as text into numbers

    MSFT's helpfile suggests a few strategies: https://support.office.com/en-us/art...1-c5bad0f0a885
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Registered User
    Join Date
    02-17-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    5

    Re: Changing numbers entered as text into numbers

    I am sorry, it apperas my question was inaccurate. It appears that what looked like numbers (eg 10.60) are actually stored in the Excel column as years in this format. The original number is 10,60. How do I get from the year format back to the original numbers?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Changing numbers entered as text into numbers

    Attach a workbook that shows a small sample of data with the problem.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    02-17-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    5

    Re: Changing numbers entered as text into numbers

    Here is a sample of the database. When the data was transferred from a database to Excel all the numbers were stored as years in this format. These are boatlengths and I need to sort them so they need to be converted to numbers.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Changing numbers entered as text into numbers

    I have no idea what you mean about the data being stored as years, sorry. I think it must be something to do with your locale, as this is what I see:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    1
    Motorbåt
    7.10
    0.00 0.00 0.000
    2
    Motorbåt
    0.00
    0.00 0.00 0.000
    3
    Motorbåt
    6.20
    115.00 0.00 0.950
    4
    Motorbåt
    9.30
    20.00 0.00 5.000
    5
    Motorbåt
    7.21
    230.00 0.00 1.700
    Sheet: Taulukko1

    Is your data coming from a UK or US or other English-speaking locale? How is the data being transferred from the database to Excel? Can you attach a sample of that data?

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Changing numbers entered as text into numbers

    As AliGW said it is your locale.
    Highlight entire range and use Find/Replace "." point with "," comma
    Then see what you format tells you.

  11. #11
    Registered User
    Join Date
    02-17-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    5

    Re: Changing numbers entered as text into numbers

    Following the advice of ibuhary to use the Error Checking drop down Excel informs me that the data is stored as a "two-digit year in a text format date", which I have difficulties understanding. In any case, the choices then available to me from the Error Checkin are to store the number in 19XX or 20XX format, both of which yield a 5-digit number which is of no use to me. The data is coming from a Swedish-speaking locale. I am not able to access the orginal data.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Changing numbers entered as text into numbers

    I also cannot see anything relating to "two-digit years", but try this approach - you need to do it 1 column at a time, unfortunately.

    1. highlight a column of data
    2. Select Data/Text2Columns
    3. click Next/Next/Finished

    See if that works for you?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  13. #13
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Changing numbers entered as text into numbers

    Can you tell us what kind of data is in these cells, then we could guide you accordingly.

    If they are dates, then you need to understand that in Excel dates are stores as "5 Digit Numbers" and its just the format of the cells that will change the way its displayed to the user.

    E.g. 43514 is today's date in excel and it can be displayed in many ways including some mentioned below:
    Year only as "2019"
    Month only as "02"
    Day only as "18"
    Weekday only as "2" or "Monday"
    Whole date as "02/18/2019" or "18-Feb-2019"

    So once you convert your text to numbers you need to play further in the format of the cells to get it display what you need.

    In case you need any further clarifications pls do not hesitate to buzz....

  14. #14
    Registered User
    Join Date
    02-17-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    5

    Re: Changing numbers entered as text into numbers

    Thank you all, torachans solution solved the problem, simple and elegant!

+ 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] Auto populate sequential ID numbers based on any text entered into adjacent cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2017, 11:41 PM
  2. Numbers entered want to format as text.
    By Lcook in forum Excel General
    Replies: 3
    Last Post: 02-14-2017, 12:02 AM
  3. Format cell with text and numbers entered
    By keanve in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2014, 02:28 AM
  4. Replies: 6
    Last Post: 05-08-2013, 07:56 AM
  5. Replies: 4
    Last Post: 04-18-2012, 07:17 AM
  6. Numbers changing from data entered
    By WDP in forum Excel General
    Replies: 1
    Last Post: 08-19-2009, 05:22 PM
  7. VBA Code to limit amount of text or numbers entered into a textbox?
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2005, 07:39 AM

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