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: Notation for Thousands and Millions.
by Allen Wyatt
(last updated December 23, 2017)
Jim wonders how he can get Excel to automatically display numbers using "k" for thousands and "m" for millions. As an example, if a cell contains the value $470,000 he would like it displayed as $470k; if it contains the value $1,107,432 he would like it displayed as $1.1m.
One obvious method is to create a formula that will display the information as desired. The following formula will take into account the magnitude of the number in cell B2 and then provide a formatted text string appropriate to that magnitude:
=IF(B2 < 1000,B2,IF(B2 < 1000000, "$" & ROUND(B2/1000,1) & "k", "$" & ROUND(B2/1000000,1) & "m"))
Remember that this is a single formula and should be entered entirely on one line. The drawback with such an approach, of course, is that the formula takes up space within your worksheet. To get around this you could, instead, create a custom format that will simply affect the display of the number in the cell.
To create a custom format if you are using a version of Excel prior to Excel 2007, choose Cells from the Format menu, display the Number tab, and click Custom at the left side of the dialog box. Here's the custom format you should create in the dialog box:
This format will display both millions and thousands using the desired notation. If the number is below a thousand then it will be displayed without any special notation. As appropriate, values are rounded to one decimal place.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3528) 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: Notation for Thousands and Millions.
Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!
Need to have your worksheet printout start on a new page every time a value in a column changes? There are a couple of ...Discover More
If you ever get to a situation where you can no longer format cells in a workbook, you'll realize just how important the ...Discover More
The error message "too many cell formats" can be difficult to fix. This tip describes ways you can attempt to get rid of ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.