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: Entering Data as Thousands.
Written by Allen Wyatt (last updated November 5, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003
Richard would like to type a value into a cell and have Excel assume that the value is thousands. For instance, he would like to enter "3" into a cell and have Excel treat the value as 3,000; if he enters "14" into the cell, then Excel should treat it as 14,000.
There are several different ways that this can be handled, depending on how you want the data treated once it is entered. One approach is to change the formatting of the cell into which the values are being entered. You could, for instance, use the following custom format for the cell:
#,##0",000"
Whenever you enter a value in the cell, Excel follows the value with ",000". Thus, enter 27 in the cell and Excel displays 27,000.
The drawback to this approach is that the underlying number is still considered the smaller value. If you later try to add 1 to the cell contents, you don't get 27,001, you get 28,000. You also won't be able to enter decimal values. This means that if you enter 1.23, you don't get 1,230; you instead get 1,000 because the value is treated as an integer before displaying.
A better approach is, perhaps, to change a configuration setting in Excel itself. Follow these steps:
Figure 1. The Edit tab of the Options dialog box.
Now, whenever you enter any information into a cell, Excel automatically multiplies the value by 1,000, provided you don't include a decimal point in what you are entering. This means that if you enter the value 3, Excel actually enters 3,000 into the cell. If you instead enter 1.23, then Excel enters 1.23; it doesn't multiply by 1,000.
If you choose this approach, remember that it is not only data entry on the current worksheet that is affected. This setting affects all data entry on all worksheets from this time forward. If this is not what you want, then you'll need to remember to turn off the setting (clear the check box) when you want to return to normal data entry.
You could, as well, use a macro approach to the problem. For instance, if you are entering only numeric data into the worksheet, you could create a macro that will multiply the contents of a cell by 1,000 every time the cell changes. Right-click the worksheet tab and choose View Code from the resulting Context menu. Then enter the following macro into the code window:
Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False Target = Target * 1000 Application.EnableEvents = True End Sub
Perhaps the best solution, though, is to keep things simple. Have a column where you input your values as you want. Then, in another column, use a formula to modify whatever values you entered. For example, you could enter 1.23 into cell A1. In cell B1, then, you could multiply this value by 1,000. The value in cell B1 could then be used within other formulas, elsewhere in your workbook.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9696) 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: Entering Data as Thousands.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Using the Character Map to insert symbols in Excel.
Discover MoreIf you distribute a workbook that is used by others for data entry, you may want a way to make sure they fill in certain ...
Discover MoreWhen you type information into a cell, Excel tries to figure out what type of information you are entering. If Excel can ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments