Have you ever worked with numbers in Excel and wanted to remove the minus sign from a negative number?
For example, you have `-250` in a cell, but you want Excel to return `250`.
You don’t need to change the number manually. Excel has a simple function called ABS that helps you do this.
In this article, let’s learn how to use the ABS function in Excel with simple examples.
What Is the ABS Function in Excel?
The ABS function returns the absolute value of a number.
In simple words, it returns the number without its negative sign. If the number is already positive, Excel returns it as it is.
For example:
| Number | Result |
| -250 | 250 |
| -75 | 75 |
| 100 | 100 |
| 0 | 0 |
As you can see, the ABS function returns a non-negative value. It does not change the original number in the cell.
ABS Function Syntax in Excel:
The syntax of the ABS function is:
=ABS(number)
number: The number for which you want to get the absolute value. You can enter a number directly or use a cell reference.
Let’s understand this with examples.
How to Use the ABS Function in Excel?
You can use the ABS function by entering a number directly into the formula or by referring to a cell.
Example 1: Get the Absolute Value of a Negative Number
Suppose you want to find the absolute value of `-250`.
Follow these steps:
1. Click an empty cell.
2. Enter the formula:
`=ABS(-250)`
3. Press Enter.

Excel returns `250`.
The negative sign is removed from the result.
Example 2: Use the ABS Function With a Cell Reference
You don’t always need to enter the number directly into the formula. You can also use a cell reference.
Suppose you have the following numbers in column A.
| A (Number) | B (Absolute Value) |
| -250 | 250 |
| -100 | 100 |
| 75 | 75 |
| -40 | 40 |
| 0 | 0 |
To calculate the absolute value of the number in cell A2:
1. Click cell B2.
2. Enter the formula:
`=ABS(A2)`
3. Press Enter.
Excel returns `250`.

To calculate the absolute values of the remaining numbers, drag the fill handle down from B2.
Excel applies the formula to the other rows.
This method is useful when you have a long list of positive and negative numbers.
Practical Example: Calculate the Absolute Difference Between Two Numbers
Suppose you want to find the difference between the target sales and actual sales, without showing a negative result.
Consider this example:
| Product | Target Sales | Actual Sales | Actual Difference | Absolute Difference |
| Laptop | 50000 | 45000 | -5000 | 5000 |
| Mouse | 10000 | 12000 | 2000 | 2000 |
| Keyboard | 15000 | 13500 | -1500 | 1500 |
To calculate the absolute difference between the target and actual sales, enter these formula in D2 & E2.
D2 (Actual Difference): =C2-B2
E2 (Absolute Difference): =ABS(C2-B2)
Press Enter and copy the formula down.
Excel subtracts the target sales from the actual sales to calculate the actual difference. The ABS function then returns the absolute value of that difference, without the negative sign.
For the Laptop, actual sales are 5,000 less than the target. The actual difference is -5000, but the ABS function returns 5000.
For the Mouse, actual sales are 2,000 more than the target. Both the actual difference and absolute difference are 2000.

Remember: The ABS function removes the negative sign from the result. It does not tell you whether the actual sales are above or below the target.
Can the ABS Function Return a Decimal Value?
Yes. The ABS function works with decimal numbers too.
For example:
| Number | Formula | Result |
| -25.75 | =ABS(-25.75) | 25.75 |
| -10.5 | =ABS(-10.5) | 10.5 |
| 8.25 | =ABS(8.25) | 8.25 |
The function removes the negative sign, if there is one, while keeping the decimal value.
What Happens When You Use ABS With Zero?
If you use the ABS function with zero, Excel returns zero.
For example:
`=ABS(0)`
Result: `0`
This is because zero is neither positive nor negative.
Common Mistakes When Using the ABS Function:
Here are a few things to remember when using ABS in Excel.
- ABS does not change the original value: It returns the absolute value in the cell containing the formula. The original number remains unchanged.
- ABS does not calculate the difference between two numbers automatically: To find the absolute difference, subtract one number from the other inside the function, such as `=ABS(A2-B2)`.
- ABS does not identify profit or loss: It removes the negative sign from a result, so you may lose the distinction between a value above and below zero.
- Use valid numeric values: The ABS function is designed to work with numbers. If a cell contains text that Excel cannot interpret as a number, the formula may return a `VALUE!` error.
Frequently Asked Questions:
1. What does ABS mean in Excel?
ABS stands for absolute value. The ABS function returns a number without its negative sign.
2. What is the formula for ABS in Excel?
The formula is `=ABS(number)`. Replace `number` with a number or a cell reference.
For example, `=ABS(A2)` returns the absolute value of the number in cell A2.
3. Does ABS convert negative numbers to positive numbers?
Yes. The ABS function returns a non-negative value. Negative numbers become positive, while positive numbers and zero remain unchanged.
4. Does the ABS function change the original number?
No. The original number remains unchanged. Excel displays the absolute value in the cell where you enter the formula.
5. Can I use ABS to calculate the difference between two numbers?
Yes. Use `=ABS(A2-B2)` to calculate the absolute difference between the numbers in A2 and B2.
6. What is the difference between ABS and subtracting numbers normally?
Normal subtraction can return a negative or positive result, depending on the order of the numbers. Using ABS around the subtraction returns the absolute value of that result.
Final Thoughts:
The ABS function in Excel is a simple way to find the absolute value of a number. It removes the negative sign when necessary and leaves positive numbers unchanged.
You can use it with negative numbers, positive numbers, decimals, and cell references. You can also combine it with subtraction to calculate the absolute difference between two values.
Remember this simple formula:
`=ABS(number)`
Try it with a few positive and negative numbers in your worksheet to see how it works.
Discover more from Excellopedia
Subscribe to get the latest posts sent to your email.
