How to enter square and power symbols in Excel formulas
Explain clearly how to write squares, powers, π, angles and logarithms in Excel formulas, use ^, POWER, PI, RADIANS, LN and other functions to replace superscripts and symbols, and provide verification methods after input.
Key points of this article
- Superscripts cannot be written directly in the formula. Use ^2 for squares and ^ followed by exponents for several powers.
- =POWER(base,exponent) Same result as ^, clearer when exponent comes from other cells
- π cannot be directly involved in the calculation, use PI() to obtain pi
- The angle must be converted into radians using RADIANS first, and then passed to functions such as SIN and COS.
- LN is the natural logarithm, LOG10 is based on 10, and LOG can specify any base.
When calculating area, growth rate or engineering data in Excel, you often need to use squares and several powers, and you may also encounter π, angles and logarithms. There is no superscript key on the keyboard. If you directly type ² or π into the formula, Excel will treat it as ordinary text, and the result will either be an error or an error message. This is also where many people really get stuck when searching for "How to use square formulas in Excel".
This article is for anyone who needs to express powers, pi, angles, or logarithms in formulas. After reading, you will know which operator or function to use in each situation, and how to check whether the result is correct after inputting it. The following writing methods are all standard functions of Excel and do not rely on a certain plug-in or website.
How to use square, power and logarithm in Excel formula? One sentence conclusion
In the formula, ^ is used to represent the power, the square is written as ^2, and the several powers are written as ^ plus the exponent; for π, angle and logarithm, you need to use the corresponding function instead of directly entering the symbol.
| your situation | Recommended practices | reason |
|---|---|---|
| Find the square of the value in cell A1 | =A1^2 | ^ is the exponentiation operator, which is short and easy to understand. |
| Calculates 10 raised to the 3rd power | =10^3 or =POWER(10,3) | The results are all 1000; when the index is in other cells, POWER is more intuitive |
| pi is required in the formula | =PI() or =PI()*A1^2 | π cannot be entered into the formula directly, PI() returns an approximate value of pi |
| Known angles, do trigonometric calculations | =SIN(RADIANS(A1)) | Trigonometric functions are calculated in radians, RADIANS does the conversion first. |
| Find the natural logarithm or common logarithm | =LN(A1) or =LOG10(A1) | LN uses e as the base, LOG10 uses 10 as the base, and the function names correspond directly to |
Before you start: Confirm these points first
- Distinguish between "power calculation" and "superscript display". Setting a cell to superscript only changes the appearance and does not participate in calculations. To make the result change with a numerical value, you must write ^ or POWER in the formula.
- Confirm whether the exponent is a fixed number or a cell reference. For a fixed number such as 3, it is simple to write ^3 directly; the index is placed in B1 and written as =A1^B1 or =POWER(A1,B1), which is less prone to errors when dragging and filling.
- Confirm whether angle conversion is required. SIN, COS, and TAN accept radians by default. What is written in the table is 30 degrees. If you directly substitute it, you will get completely different results. You must use RADIANS to convert it first.
- Confirm the base of logarithms. Use LN for natural logarithms, LOG10 for base 10, and LOG(number, base) for other bases. If you choose the wrong base number, the result will be much different. You should read the title or instructions clearly before calculating.
- Confirm that the data is numbers, not text. Numbers copied from web pages or PDFs may have spaces or be saved as text, and formulas may be incorrect. It can be checked with =ISNUMBER(A1) and returns TRUE to participate in the calculation. If the data comes from a PDF table, you can first use the PDF editor of the OmniDoc desktop client to export it to Excel, and then write the formula.
Steps to enter powers, π and logarithms in cells
- Select the cell where you want to display the result, enter the equal sign = first, and enter the formula state.
- To calculate the square, first enter the cell address where the base is located, such as A1, and then enter ^2. The complete formula is =A1^2. The ^ symbol is usually in the upper position of the numeric key 6. Press Shift plus 6 to enter.
- To calculate the power of several times, write the exponent after ^, such as =10^3. If the index is in B1, write =A1^B1, or use =POWER(A1,B1) instead.
- To use pi, enter PI(), leaving the parentheses intact and without arguments. For example, to calculate the area of a circle with radius in A1, write =PI()*A1^2.
- To do trigonometric calculations based on angles, first use RADIANS to convert the angles into radians, for example =SIN(RADIANS(30)), the result is about 0.5.
- To request a logarithm, LN(number) will get the natural logarithm, LOG10(number) will get the logarithm with base 10, and LOG(number, base) can specify any base. For example, the result of =LOG(8,2) is 3.
- Press Enter to confirm, and then return to the edit bar to check whether the text of the formula is consistent with your intention.
- When you need to apply the same formula to the entire column, drag the fill handle in the lower right corner of the cell, and Excel will automatically adjust the cell address.
Check each item after completion
| Check items | How to see | What to do if there is a problem |
|---|---|---|
| Is the result a numerical value? | Numeric values are aligned right by default, and the result of left alignment is usually text | Check with ISNUMBER and convert the text to numbers before calculating. |
| Is the power correct? | If you use the known answer such as = 2 ^ 3, you should get 8. | If not, check to see if it is mistakenly written as 2: 3 or omitted ^ |
| The power of negative numbers | The result of =-2 ^ 2 is 4 because the minus sign is calculated before the multiplier. | Write =-(2 ^ 2) when you need-4 |
| Angle result | = SIN (RADIANS (90)) should be close to 1 | If the result is close to 0.0175, RADIANS is omitted. |
| Logarithmic base | = LOG (8. 2) deserves 3. | If the base number is wrong, use LOG10 or LN instead, or check the base number in the question. |
| Pi | = PI () should show about 3.14159 | If # NAME?, is displayed, check whether the function name is misspelled and whether the parentheses are missing. |
When it comes to machine-identified or converted data, the key numbers still have to be checked with the original table one by one, not just to see whether the formula can work.
# Core comparison
| Writing method | Suitable for the scene | Example | Result |
|---|---|---|---|
| ^ operator | The index is fixed and the formula is simple. | =2^5 | 32 |
| POWER function | The index comes from the cell and is easy to read when it is more nested. | =POWER(2,5) | 32 |
| LN | Natural logarithm, based on e | =LN(10) | About 2.3026 |
| LOG10 | Common logarithms with a base of 10 | =LOG10(1000) | 3 |
| LOG | Take any number as the base | =LOG(8,2) | 3 |
The results of ^ and POWER are exactly the same, which one mainly depends on readability. The choice of logarithmic function depends on the base, and the result is different when the base is different.
# frequently asked questions (FAQ)
1. If the number is superscript in the cell, why is the result of the formula still wrong?
The superscript only changes the display effect, and the value in the cell does not change. Use ^ or POWER when calculating the formula, for example, = A1 ^ 2.
2. Can the π symbol be directly entered into the formula?
No, I can't. Pi is only a literal symbol and does not participate in the calculation. Use PI () in the formula, which returns a value of about 3.14159.
3. Why not write SIN (30) directly?
SIN defaults to 30 as radians. First convert to radians with RADIANS (30), and then find the sine, the result is about 0.5.
4. How do you write the multiplication sign and division sign in the formula?
The multiplication sign is given with *, except the sign with /, for example, = A1/B1. Do not use × or /, which Excel cannot recognize as operators.
# Summary
By mastering these kinds of writing methods, the problem of how to use square, power and logarithm in Excel formula can be basically solved: sum of squares with ^ or POWER, π with PI (), angle first converted with RADIANS, logarithmic base to choose LN, LOG10 or LOG. After the input is completed, try to calculate it with the known answer, and the result will be more confident.


