Written by Allen Wyatt (last updated April 25, 2020)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
If you are using Excel to massage data imported from another system, you know that often the data needs quite a bit of work. For instance, you might import information that represents a time value, but the data actually ends up being treated by Excel as a text string.
If you find your data in this condition, all is not lost. If you want to convert the text values into actual time values, there are several ways you can accomplish the task. The first is to follow these steps:
=VALUE(A1)
Figure 1. The Paste Special dialog box.
Once you get going with this process, it is pretty quick. Not as quick, however, as the following approach:
Figure 2. The Convert Text to Columns wizard.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11438) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Converting Text to Values.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Want a quick way to enter a series of single digits into consecutive cells? The best approach is with a macro, and this ...
Discover MoreWhen you create a worksheet, it is common to place headings at the top of each column and the left of each row so you can ...
Discover MoreReferring to a range of cells on the current worksheet is easy. But what if you want to refer to a range on a number of ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-10-19 04:56:29
Leslie Glasser
Commas or decimal points are simply conventions which may be altrered in Excel. Try this:
https://www.extendoffice.com/documents/excel/5229-excel-comma-to-decimal-point.html
2021-10-18 09:55:22
Tim Foxen
Hi, neither worked. I don't think it applies to my situation - a European/south african excel version that uses commas instead of decimals and reads decimals that get imported as text. So I need to convert the text (numbers with decimals) to numbers, with commas). If you have that solution, please let me know!!
2020-04-25 22:35:58
Leslie Glasser
These methods to convert text to numbers may fail when there hidden leading or trailing characters.
This array function will remove up to 10 such hidden characters (will work as dynamic array in Excel 2016; otherwise enter with Ctrl+Shift+Enter)
=VALUE(CONCAT(SUBSTITUTE(IFERROR(VALUE(SUBSTITUTE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1),".",10)),""),10,".")))
from https://www.reddit.com/r/excel/comments/8imcd1/cant_convert_text_to_numbers_tried_everything/
(Author: dm_parker0)
2020-04-25 10:13:53
Mark Watson
If this is a task that needs to be done repeatedly I suggest using Power Query (Get & Transform).
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2023 Sharon Parq Associates, Inc.
Comments