ABS - Absolute value of a Number in Excel

CD
NumberAbsolute Value
41010=ABS(C4)
5-1010=ABS(C5)
61.251.25=ABS(C6)
7-1.251.25=ABS(C7)
What Does it Do ?
This function calculates the value of a number, irrespective of whether it is positive or negative.
Syntax
 =ABS(CellAddress or Number)
Formatting
The result will be shown as a number, no special formatting is needed.
Example
The following table was used by a company testing a machine which cuts timber.
The machine needs to cut timber to an exact length.
Three pieces of timber were cut and then measured.
In calculating the difference between the Required Length and the Actual Length it does
not matter if the wood was cut too long or short, the measurement needs to be expressed as
an absolute value.
Table 1 shows the original calculations.
The Difference for Test 3 is shown as negative, which has a knock on effect
when the Error Percentage is calculated.
Whether the wood was too long or short, the percentage should still be expressed
as an absolute value.
Table 1
CDEFG
35Test
Cut
Required
Length
Actual
Length
DifferenceError
Percentage
36Test 112012000%
37Test 2120903025%
Test 3120150-30-25%
=D36-E36
Table 2 shows the same data but using the =ABS() function to correct the calculations.
Table 2
CDEFG
44Test
Cut
Required
Length
Actual
Length
DifferenceError
Percentage
45Test 112012000%
46Test 2120903025%
Test 31201503025%
=ABS(D45-E45)

Comments