Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Notation for Thousands and Millions.
by Allen Wyatt
(last updated July 25, 2015)
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, display the Home tab of the ribbon and click the small icon at the lower-right corner of the Number group. In the resulting dialog box, click Custom at the left side. 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 (6146) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Notation for Thousands and Millions.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Want a quick and easy way to hid the information in a cell? You can do it with a simple three-character custom format.Discover More
While the implementation of custom formats in Excel is not terribly robust, you can still achieve some amazing results with ...Discover More
Want to apply a custom format to your dates and times? To do it effectively you need to understand the custom formatting ...Discover More
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.