To display numbers like 25,000 as 25K in Excel, use a custom number format: select the cells, press Ctrl+1 (Mac: Cmd+1), go to the Number tab, choose Custom, and enter #,##0,"K" in the Type box. This keeps the underlying value intact while showing the letter K. For decimals like 25.5K, use #,##0.0,"K". No formulas or helper columns are needed, and the change is purely visual.
What You’ll Need
- Microsoft Excel for Microsoft 365 on Windows (steps differ slightly on Mac and Excel for the web, noted below).
- A range of cells containing numeric values (e.g., sales figures, population counts).
- No special add-ins or macros required.
Step-by-Step
- Select the cells you want to format. This can be a single cell, a column, or a non-contiguous selection (hold
Ctrlwhile clicking). - Open the Format Cells dialog by pressing
Ctrl+1(Windows) orCmd+1(Mac). Alternatively, right-click the selection and choose Format Cells. - Go to the Number tab (it’s the first tab in the dialog).
- Select “Custom” from the Category list on the left. This reveals a Type input box on the right.
- Delete the existing text in the Type box (it usually shows “General” or a previous format).
- Enter the format code
#,##0,"K"for whole numbers. The comma after the zero divides the number by 1,000, and the quoted “K” adds the letter. Click OK. - Check the result. A cell containing 25000 will now display as 25K. The actual value remains 25000, so formulas and calculations still use the full number.
- For decimals, use
#,##0.0,"K"to show one decimal place (e.g., 25500 becomes 25.5K). For two decimals, use#,##0.00,"K". - To remove the format later, select the cells, press
Ctrl+1, choose “General” in the Category list, and click OK.
Mac difference: The keyboard shortcut is Cmd+1, and the dialog works the same. Excel for the web: Right-click the cell, choose Format Cells, then Custom; the same code works, but there is no keyboard shortcut.
Common Mistakes
- Using a formula instead of formatting:
=A1/1000&"K"creates text, breaking further calculations. Custom formatting avoids this. - Forgetting the comma placement: The comma must be after the last zero in the format code, not before it.
#,Kwill not work correctly. - Quoting the K incorrectly: The letter K must be inside double quotes (e.g.,
"K"). Without quotes, Excel may interpret it as a format code and show an error. - Applying to text cells: If your cells contain text like “25000” (entered with an apostrophe), the format won’t apply. Convert to numbers first.
- Expecting negative numbers to show -K: The format
#,##0,"K"shows negative numbers as -25K automatically. If you want parentheses, use#,##0,"K";(#,##0,"K").
Tips
- Add a thousands separator for large numbers: Use
#,##0,"K"– the comma in#,##0adds grouping, so 1,250,000 shows as 1,250K. - Combine with other suffixes: For millions, use
#,##0,,"M"(two commas divide by 1,000,000). For billions, use three commas:#,##0,,,"B". - Use conditional formats for dynamic labels: If some cells should show K and others M, apply two conditional formatting rules with number formats (Home > Conditional Formatting > New Rule > Use a formula).
- Copy the format quickly: Use the Format Painter (Home tab, paintbrush icon) to apply the custom format to other cells without re-entering the code.
- Preview before applying: The Format Cells dialog shows a “Sample” area – verify your code looks right before clicking OK.
Troubleshooting
- The K does not appear: Check that you are in the Custom category, not Number or Text. Also ensure the quotes are straight double quotes (
"), not curly ones. - Numbers show as 25 instead of 25K: You likely forgot the comma after the zero. The comma is what divides by 1,000. Re-enter
#,##0,"K". - Decimals show too many digits: Your format code may have too many zeros. Use
#,##0.0,"K"for one decimal, not#,##0.00,"K"unless you need two. - Negative numbers display with a minus sign but no K: The format applies to positives only if you didn’t specify a negative section. Add a semicolon and repeat:
#,##0,"K";-#,##0,"K"to force K on negatives. - Excel for the web shows “Custom” but no Type box: Ensure you’re in the right dialog – in Excel for the web, right-click > Format Cells > Number > Custom. The Type box appears at the bottom.
- Values are rounded visually but not in reality: This is expected. If you need the actual value to be 25 (not 25000), you must divide by 1000 in a separate column or use a formula like
=A1/1000and format that as General.
Frequently Asked Questions
- Does this change the actual number? No. The cell still contains the full value (e.g., 25000). Only the display changes. Formulas referencing that cell will use 25000.
- Can I use this in a pivot table? Yes. Right-click a value field, choose Value Field Settings, then Number Format, and apply the custom format there.
- How do I show “K” without a space? The format
#,##0,"K"puts no space. If you want a space (e.g., 25 K), add a space before the quote:#,##0, "K". - Will this work on Mac Excel? Yes, the same format codes work. The only difference is the shortcut to open Format Cells (
Cmd+1). - Can I use lowercase “k” instead of uppercase? Yes, just type
"k"in the format code. Excel treats it as text. - What if my numbers are already text? Convert them to numbers first: select the column, use Text to Columns (Data tab), and finish. Then apply the format.
Related
- NP Generate Random Numbers? What It Means
- How to Add a Hide Button in Excel
- 911 Data Entry Practice Test: 10 Realistic Drills
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Data Bars: How to Use Conditional FormattingIn Excel, bar conditional formatting is called Data Bars: it fills each selected cell with a horizontal bar…
- Excel Data Analysis: Methods, Tools, and ExamplesExcel data analysis means organizing spreadsheet data, checking it for errors, and using formulas, PivotTables, charts, and other…
- What Is a Definition Update? Meaning & UsesA definition update is a change made to the stored meaning of a term, word, or concept within…
- Solar Battery Runtime Calculator: How to Use OneA solar battery runtime calculator estimates how long a battery can power your appliances by dividing usable battery…
- Excel Find Defined Names: Name Manager, Scope, and UsesTo find defined names in Excel for Microsoft 365 on Windows, open Formulas > Name Manager, or press…
- Excel Meal Plan Template: Build a Weekly Planner That WorksAn Excel meal plan template is a workbook for assigning meals to days, keeping recipes and ingredients together,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.