The letter K in an Excel formula is not a function or a special operator. It is a shorthand notation that appears in two very different places: inside a custom number format (where it displays thousands, as in 12K) and inside formulas written by other people as a variable name or text label. Excel itself has no built-in K function. If you type =K(A1) you will get a #NAME? error. What people usually mean by "K in Excel formula" is either (1) how to make a cell show 12K instead of 12,000, or (2) how to use K as a column letter, a named range, or a letter inside a text string. This guide covers both, plus the traps that make K behave unexpectedly.

What You'll Need

  • Excel for Microsoft 365, Excel 2021, Excel 2019, or Excel for Mac. The steps below use the desktop ribbon; Excel for the web has the same Formula Bar and Format Cells dialog but the menus can be slightly rearranged.
  • A worksheet with at least one number in a cell, so you can see the effect of a number format.
  • Basic familiarity with the Formula Bar and the right-click menu on a cell.
  • No add-ins are required. Everything here uses built-in Excel features.

Menu labels can differ slightly by version, device, and region. Where a path differs on Mac, it is noted.

Step-by-Step

  1. Decide which K you actually need. If you want a cell to display 12K, you need a custom number format. If you want a formula to reference column K, you just type K in the reference, for example =SUM(K2:K10). If you want the literal letter K inside a text result, you put it in quotes, for example =A1&"K". If you saw =K(...) in someone else's workbook, that is almost certainly a defined name or a user-defined function, not a native Excel feature.
  2. Format a number to show K (thousands). Select the cell or range, right-click, and choose Format Cells. On the Number tab, select Custom. In the Type box, enter 0,"K" for whole thousands, or 0.0,"K" if you want one decimal place. Click OK. The underlying value stays 12000; only the display changes. This is important because formulas that reference the cell still use the full number.
  3. Check the comma logic. In a custom format, each comma after the digit placeholder divides the displayed number by 1,000. So 0, shows 12 for 12000, and 0,, shows 0 for 12000 (millions). The letter K in quotes is just a literal suffix. Do not put K outside quotes in the Type box unless you want Excel to treat it as a format code, which it will not recognise.
  4. Use K as a column reference. Click the cell where you want the result and type =SUM(K2:K10) or =K2*2. Column K is the eleventh column. If your formula returns #NAME?, Excel is reading K as a function name, not a column, which happens if you leave out the row number. Always pair the column letter with a row number.
  5. Use K inside a text formula. To append the letter K to a number, use =A1&"K". If A1 contains 12000, the result is the text string 12000K. To get 12K, combine with ROUND: =ROUND(A1/1000,0)&"K". This produces text, not a number, so do not use it in further arithmetic without converting back.
  6. Check for a defined name called K. Go to Formulas > Name Manager. If you see a name K, it is a named range or constant that someone created. You can edit or delete it there. Deleting a name that formulas depend on will turn those formulas into #NAME? errors, so note where it is used first.
  7. Look for a user-defined function. Press Alt+F11 (Windows) or Fn+Option+F11 (Mac) to open the Visual Basic Editor. In the Project pane, look under Modules for a procedure named K. If one exists, the workbook contains VBA, and =K(...) calls that code. Close the editor without saving if you only wanted to inspect it. Macros must be enabled for the function to run, and workbooks from unknown sources should not have macros enabled.
  8. Test the result. Enter a known number such as 12500 in a cell, apply the custom format 0.0,"K", and confirm it shows 12.5K. Then reference that cell in a formula, for example =A1+1, and confirm the result is 12501, proving the format did not change the value.

Common Mistakes

  • Typing =K(A1) and expecting a result. Excel has no K function, so this returns #NAME?. Use a custom format or a text formula instead.
  • Putting K in the custom format without quotes. The Type box expects 0,"K" with straight double quotes. Smart quotes pasted from a document will not work.
  • Assuming the formatted cell now contains 12. The value is still 12000. Sorting, totals, and charts all use the real number.
  • Confusing a column letter with a named range. If someone defined a name K, =K*2 may refer to that name, not column K. Check Name Manager.
  • Leaving out the row number. =SUM(K:K) is valid and sums the whole column, but =K alone is not a valid reference and will error.
  • Using a text result in maths. =ROUND(A1/1000,0)&"K" returns text. Adding 1 to it gives #VALUE!.

Tips

  • Use 0.0,,"M" for millions and 0.0,"B" for billions, following the same comma rule.
  • Apply the K format to chart data labels through Format Data Labels > Number, using the same custom code.
  • If you need a real number rounded to thousands, use =ROUND(A1,-3) rather than a format. That changes the value, which is what you want for calculations.
  • Keep a note in the workbook explaining any defined names, so the next person does not mistake K for a built-in function.
  • For accessibility, mention in a comment that the cell displays thousands, because screen readers may read the formatted value differently from the stored value.

Troubleshooting

#NAME? error. Excel does not recognise K as a function. Check whether you meant a column reference (K2), a named range, or a text suffix in quotes.

The custom format shows the K but the number is wrong. Count the commas. One comma divides by 1,000; two divide by 1,000,000. Remove or add commas until the displayed number matches.

The K format does not apply. Confirm the cell is formatted as a number, not text. A cell containing text ignores number formats. Use VALUE or re-enter the number.

A formula that used to work now returns #NAME?. A defined name or macro may have been deleted or macros disabled. Check Name Manager and the Trust Center macro settings. Re-enable macros only for workbooks you trust.

If that did not work, open a new blank workbook and repeat the custom format step there. If it works in the blank file, the problem is in the original workbook's names, macros, or cell formatting, not in Excel itself.

Frequently Asked Questions

Is there a K function in Excel?

No. Excel has no built-in K function. K appears as a display suffix in custom number formats, as a column letter, or as a name or macro someone created.

How do I make Excel show 12K instead of 12000?

Right-click the cell, choose Format Cells, select Custom, and enter 0,"K". The stored value stays 12000.

Why does =K2 work but =K does not?

A cell reference needs both a column letter and a row number. K alone is read as a name or function, which Excel cannot resolve.

Does the K format change the number for calculations?

No. Number formats only change how the value looks. Totals and formulas still use the full stored number.

How do I get 1.2K with one decimal place?

Use the custom format 0.0,"K". For 1250 it displays 1.3K because Excel rounds the display.

What if K is a named range in my workbook?

Open Formulas > Name Manager to see and edit it. Deleting it will break any formula that refers to it.