Converting Text to Values
Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Converting Text to Values.
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:
- Insert a blank column to the right of the data you need to convert.
- Just to the right of the first cell that has a text-formatted time value, enter the following formula. Make sure you substitute the address of the cell for A1:
- Copy the formula down, so that each cell to be converted has the formula to its right.
- Select the column in which you just put the formulas.
- Press Ctrl+C. This copies the selected information to the Clipboard.
- Choose Paste Special from the Edit menu. Excel displays the Paste Special dialog box. (See Figure 1.)
Figure 1. The Paste Special dialog box.
- Make sure the Values radio button is selected.
- Click on OK. All your formulas are replaced with actual values.
- Format the column using a desired Time format.
- Delete the original text-formatted time column.
Once you get going with this process, it is pretty quick. Not as quick, however, as the following approach:
- Select the cells that contain the text-formatted times. If it is an entire column, select the entire column.
- Choose Text to Columns from the Data menu. Excel launches the Convert Text to Columns Wizard. (See Figure 2.)
Figure 2. The Convert Text to Columns wizard.
- Don't worry about any of the settings in the Wizard—your data should be converted just fine with the defaults.
- Click on Finish.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2745) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Converting Text to Values.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
Leave your own comment:
Comments for this tip:
Michael (Micky) Avidan 28 Sep 2015, 05:23
...and an even much quicker approach (replacing steps: 5,6,7,8):
1. Select the range of cells having the formula: VALUE
2. Point to any border of that range > RIGHT click & hold mouse button and drag the range to a new location and, without leaving the right button, drag back to its original location.
3. Release the mouse button and LEFT click on "Copy here as values only".
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
Isah Nagode 27 Sep 2015, 18:08
It's been a wonderful experience. well done!
Gopi Kannan 22 Jan 2014, 02:49
How to convert the english words in to values to be calculate.
John Rose 12 Mar 2012, 06:29
If you use the Paste Special Values trick a lot (it's useful for 'freezing' the results of formulas, also improves workbook performance), then consider customising a toolbar to include the button which does it.