How to Add Superscript in Excel Formula

Formulas & functions · Updated November 27, 2026

To add superscript in an Excel formula, you cannot format part of a formula’s result as superscript directly within the formula bar. Instead, you have two practical options: use the CHAR function with Unicode superscript characters, or insert a text box or shape where you can manually format the text. The most common method for a formula-driven cell is using CHAR codes for numbers and certain letters. This guide covers both approaches, with exact steps for Microsoft 365 on Windows, and notes for Mac and Excel for the web.

What You’ll Need

  • Microsoft Excel for Microsoft 365 (Windows or Mac) or Excel for the web
  • A worksheet with a cell where you want the superscript to appear
  • For the CHAR method, know the Unicode character code for the superscript you need (provided below)

Step-by-Step

Method 1: Using CHAR Function (for numbers and common letters)

This method works when you need superscript numbers (0-9) or a few letters (like ⁿ for ‘n’). It creates a text string that looks like a superscript but is actually a separate Unicode character.

  1. Decide which superscript characters you need. Here are the CHAR codes for common superscripts (Windows and Mac):
    ⁰ = CHAR(8304), ¹ = CHAR(185), ² = CHAR(178), ³ = CHAR(179), ⁴ = CHAR(8308), ⁵ = CHAR(8309), ⁶ = CHAR(8310), ⁷ = CHAR(8311), ⁸ = CHAR(8312), ⁹ = CHAR(8313), ⁿ = CHAR(8315) (note: ⁿ is actually superscript n, code 8315 is superscript minus; superscript n is 8319, but that may not display in all fonts). For a minus sign, use CHAR(8315).
  2. In a cell, type a formula that concatenates your normal text with the CHAR function. For example, to show “x²”, type: ="x"&CHAR(178). Press Enter.
  3. For a formula that includes a cell reference and a superscript, say you have the number 5 in A1 and you want to show “5³”, type: =A1&CHAR(179). This returns the text “5³” (the 3 is superscript).
  4. If you need multiple superscripts, chain them. Example: ="x"&CHAR(178)&CHAR(179) gives “x²³”.
  5. To use this in a longer formula, embed it. For instance, to calculate and display a squared value with a label: ="Area: "&A2&CHAR(178).

Method 2: Using a Text Box or Shape (for full formatting)

If you need superscript within a sentence or with any letter (like a, b, c), the CHAR method won’t cover all letters. Use a text box instead.

  1. Go to the Insert tab and click Text Box (or Shape > Text Box).
  2. Draw the text box on the worksheet.
  3. Type your text, including the part that should be superscript. For example, type “x2” (without the quotes).
  4. Select the character(s) you want as superscript (the “2”).
  5. Right-click the selected text and choose Format Text Effects (or go to the Home tab, then click the small arrow in the Font group). In the Font dialog, check the Superscript box under Effects. Click OK.
  6. The selected text becomes superscript. This is not a formula, but it displays as you want. If you need to link it to a cell, you can type a formula in the text box’s formula bar (select the text box, then in the formula bar type =A1), but you cannot format part of that result as superscript—the whole text box content will be the cell value.

Method 3: Using Excel’s Format Cells (for static text in a cell)

If you are not using a formula, you can format any cell’s text as superscript.

  1. Double-click the cell to enter edit mode, or select the cell and press F2.
  2. Select the character(s) you want to format as superscript.
  3. Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open Format Cells.
  4. Go to the Font tab and check Superscript under Effects. Click OK.
  5. Press Enter to confirm. This only works for static text, not for formula results.

Common Mistakes

  • Using CHAR with the wrong code: CHAR(185) is superscript 1, but CHAR(178) is superscript 2, and CHAR(179) is superscript 3. Mixing them up gives wrong characters.
  • Expecting formula results to be formatable: You cannot format part of a formula’s result as superscript using the Format Cells dialog. The result is a single value, not individual characters.
  • Using CHAR for letters that don’t exist: Unicode has only a few superscript letters (like ⁿ, ⁱ, ᵈ). For most letters (a, b, c), CHAR will return a normal character or an error. Check the code before using.
  • Forgetting to use ampersand for concatenation: In Excel, you must use & to join text and CHAR functions. Using + will not work.

Tips

  • To type a superscript character directly (without CHAR), you can copy-paste from a character map or use the Alt code on Windows (e.g., Alt+0178 for ²). But CHAR is more reliable in formulas.
  • For a cleaner look, consider using a custom number format for superscripts in numbers. For example, to display 5² as a number, you can’t do it directly, but you can use a text approach.
  • If you need superscripts in a chart title or axis label, use the text box method.
  • On Mac, the CHAR codes work the same, but the shortcut for Format Cells is Cmd+1.
  • In Excel for the web, the Format Cells dialog is available (right-click > Format Cells), but the CHAR function works the same.

Troubleshooting

My CHAR formula returns #VALUE! error. This usually means the CHAR code is invalid. Check that the code is between 1 and 255 for standard ASCII, or up to 65535 for Unicode. For superscripts, use the codes listed above. Also ensure you are not using a code that is not supported in your font (like superscript n).

The superscript looks like a normal number. Some fonts may not render certain Unicode superscript characters correctly. Try changing the font to a common one like Arial or Calibri. If it still doesn’t work, use the text box method.

I can’t find the Superscript checkbox in Format Cells. Make sure you have selected the exact characters in the cell (double-click to edit). The checkbox is under the Font tab in the Effects section.

My text box formula doesn’t show superscript. When you link a text box to a cell with a formula, the text box displays the cell’s value as plain text. You cannot format part of that linked text. Instead, type the text manually in the text box and format it.

Frequently Asked Questions

Can I make a superscript in a formula result like x² automatically? No, Excel formulas return values, not formatted text. You must use the CHAR function to insert a Unicode superscript character, or use a text box.

What is the CHAR code for superscript 2? CHAR(178) gives ². For superscript 3, use CHAR(179). For superscript 1, CHAR(185).

Does the CHAR method work in Excel for the web? Yes, CHAR works in Excel for the web. The character codes are the same.

Can I superscript a letter like ‘a’ in a formula? There is no Unicode superscript ‘a’ that is widely supported. Use the text box method for letters other than the few that exist (like ⁿ, ⁱ).

How do I superscript a negative exponent? Use CHAR(8315) for a superscript minus sign, then the number. For example, ="x"&CHAR(8315)&CHAR(178) gives x⁻².

Is there a keyboard shortcut to superscript in a cell? Yes, in edit mode, select the character and press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, then check Superscript. There is no single-key shortcut.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.