Absolute Number in Excel: ABS Function Guide
In this article
The absolute value of a number is its distance from zero, always positive. In Excel, you get it with the ABS function: type =ABS(A1) and Excel returns the number in A1 without its sign, so -42 becomes 42 and 42 stays 42. That is the whole answer; the steps below cover entering it, applying it to a whole column, and the places where people trip up.
What You'll Need
- Excel for Windows, Excel for Mac, Excel for the web, or the free Excel mobile app. The ABS function exists in all of them and behaves the same way.
- A worksheet with at least one number in it, or a cell where you want the result.
- No add-ins, macros or special settings. ABS is a built-in function and works in every version of Excel still in use.
Step-by-Step
- Click the cell where you want the absolute value to appear. Pick an empty cell, ideally next to the number you are converting, so you can see both side by side.
- Type
=ABS(— the equals sign starts the formula, and ABS is the function name. As you type, Excel may show a tooltip with the function name; you can ignore it or press Tab to accept it. - Click the cell that holds the number you want to convert, or type its address. For example, if the number is in A2, your formula now reads
=ABS(A2. - Type the closing parenthesis
)and press Enter. The cell shows the positive version of the number. If A2 contained -15, the result is 15. - To apply it to a whole column, drag the fill handle (the small square at the bottom-right corner of the formula cell) down over the rows you need. Excel adjusts the cell reference for each row automatically, so row 3 uses A3, row 4 uses A4, and so on.
- If you want to replace the original numbers with their absolute values instead of keeping a helper column, copy the formula cells, then use Paste Special > Values over the originals. Delete the helper column afterwards. Paste Special is on the Home tab's Paste drop-down on desktop; on the mobile app, copy the cells and choose Paste Values from the paste options.
- If you only need a one-off result, you can also type the number directly into the formula:
=ABS(-27)returns 27. This is handy for a quick check but not for data you will reuse.
Menu and button labels can differ slightly by Excel version, platform and region, but the function name ABS and the formula syntax are identical everywhere.
Common Mistakes
- Forgetting the closing parenthesis. Excel will offer to fix the formula for you, but if you dismiss the prompt you get an error. Check that every opening bracket has a matching closing one.
- Typing a minus sign in front of ABS.
=-ABS(A1)gives you the negative of the absolute value, which defeats the purpose. Leave the minus sign out. - Using ABS on text. If the cell contains text such as "-15" stored as text, ABS returns a #VALUE! error. Convert the text to a number first, for example with
VALUE()or by retyping it. - Expecting ABS to change the original cell. ABS returns a result in the cell where you put the formula; it does not alter the source number. Use Paste Special > Values if you need to overwrite the originals.
- Confusing absolute value with absolute cell references. The dollar signs in
$A$1lock a reference; they have nothing to do with the ABS function. Both are called "absolute" in Excel, which causes real confusion. - Applying ABS to dates or times. Excel stores dates as serial numbers, so ABS will technically work, but the result will look like a meaningless number unless you reformat the cell. This is rarely what anyone wants.
Tips
- Use ABS inside larger formulas to keep calculations valid. For example,
=ABS(B2-C2)gives the gap between two values regardless of which is larger, which is useful for variance and error checks. - Combine ABS with SUM to total a column of mixed positive and negative numbers as if all were positive:
=SUMPRODUCT(ABS(A2:A100)). Plain=SUM(ABS(A2:A100))only works as an array formula in older Excel versions, so SUMPRODUCT is the safer choice. - If you are cleaning imported data, ABS is often paired with TRIM and VALUE to strip signs, spaces and text formatting in one pass.
- Name the helper column clearly, such as "Absolute Amount", so anyone reading the sheet knows the sign has been removed on purpose.
- For a quick visual check, conditional formatting can highlight negative numbers before you convert them, so you can confirm which cells need ABS.
Troubleshooting
If the formula returns #VALUE!, the cell you referenced almost certainly contains text rather than a number. Click the cell, look at the alignment (text usually sits left, numbers right), and check the status bar at the bottom of the window, which shows a count of numbers versus text when you select a range. Convert the text to numbers and try again.
If you see #NAME?, Excel did not recognise the function name. This usually means a typo such as =ABZ(A1) or a missing equals sign. Retype the formula carefully.
If the result looks correct but the cell shows something odd like a date, the cell's number format is wrong. Select the cell, open Format Cells (Ctrl+1 on Windows, Cmd+1 on Mac), and set the format to General or Number.
If dragging the fill handle copies the same value down every row instead of adjusting, the reference may be locked with dollar signs, or calculation may be set to Manual. Check Formulas > Calculation Options and set it to Automatic.
If ABS works in one workbook but not another, the second file may be in a format that does not support formulas (such as CSV opened directly) or may have protection enabled. Save as .xlsx and unprotect the sheet if needed.
Frequently Asked Questions
What does ABS do in Excel?
It returns the absolute value of a number — the number without its sign. =ABS(-8) returns 8, and =ABS(8) also returns 8.
Is there an absolute value button on the ribbon?
No. Excel does not have a dedicated Absolute Value button. You type the ABS formula, or use it inside another formula.
Can I apply ABS to a whole range at once?
Not directly in a single cell without an array-style formula. The practical approach is a helper column with =ABS(A2) filled down, then Paste Special > Values if you want to replace the originals.
What is the difference between absolute value and absolute reference?
Absolute value removes a number's sign. An absolute reference (with dollar signs, like $A$1) locks a cell address so it does not change when you copy the formula. They share a word but are unrelated features.
Does ABS work on negative numbers stored as text?
No. It returns #VALUE! until the text is converted to a real number. Use =ABS(VALUE(A1)) or retype the value.
Will ABS change my original data?
No. It only returns a result in the cell where you enter the formula. To overwrite the source numbers, copy the ABS results and paste them back as values.