The ABS formula in Excel converts any number into its absolute value, meaning it strips away the minus sign and returns the positive magnitude. To use it, type =ABS(number) into a cell, replacing "number" with a value or a cell reference such as =ABS(A2). It is one of the simplest functions in Excel, taking exactly one argument, and it works identically in Excel for Windows, Excel for Mac, and Excel for the web.

What You'll Need

  • A copy of Excel (desktop, Mac, or the free Excel for the web in a browser)
  • A worksheet containing numbers you want to convert, or a blank one to practice on
  • No add-ins, special settings, or advanced knowledge required

Step-by-Step

  1. Open your workbook in Excel and navigate to the worksheet containing the numbers you want to convert.
  2. Click the cell where you want the absolute value to appear. This should be a different cell from the one holding your original number.
  3. Type the formula starting with an equals sign: =ABS(
  4. Enter the argument. Either click the cell containing your number (for example, B2) or type the number directly, such as =ABS(-45). The full formula looks like =ABS(B2).
  5. Close the parentheses and press Enter. The cell displays the absolute value. If B2 held -45, the result is 45; if it held 45, the result is still 45.
  6. Copy the formula down to apply it to a column of numbers. Click the cell with your formula, then drag the small square (the fill handle) at its bottom-right corner down over the remaining cells. The cell reference adjusts automatically for each row.
  7. Optional: replace the original values. If you want the absolute values in place of the originals, copy the formula results, then right-click the original cells and choose Paste Special > Values. Delete the helper column afterwards.
  8. Use ABS inside other formulas when needed. For example, =SUMPRODUCT(ABS(A2:A10)) adds the absolute values of a whole range, and =ABS(A2-B2) gives the difference between two numbers regardless of which is larger.

Common Mistakes

  • Forgetting the equals sign. Typing ABS(B2) without the leading = makes Excel treat it as text, and the cell shows exactly what you typed.
  • Missing parentheses. ABS requires parentheses around its argument; =ABS B2 will trigger an error message.
  • Passing text. ABS only works on numbers. If the referenced cell contains text, Excel returns a #VALUE! error. Check for stray spaces or numbers stored as text (often shown with a small green triangle in the cell corner).
  • Expecting ABS to work on a range in a plain formula. =ABS(A2:A10) alone does not work in older Excel versions unless entered as an array formula. Use SUMPRODUCT(ABS(range)) or, in recent versions with dynamic arrays, the formula spills automatically.
  • Confusing ABS with formatting. Changing a cell's number format to hide minus signs does not change the underlying value; ABS actually changes it.

Tips

  • Combine ABS with IF to flag deviations: =IF(ABS(B2-C2)>10,"Check","OK") marks rows where two values differ by more than 10 in either direction.
  • To compute the absolute difference between two dates or times, subtract them inside ABS: =ABS(C2-B2).
  • Use the keyboard shortcut F4 (Windows) or Cmd+T (Mac) after selecting a cell reference to toggle absolute references like $B$2, which is handy when copying formulas across.
  • ABS ignores zero sign, so =ABS(0) simply returns 0.
  • You can also type ABS directly in a cell's formula using the Function Library: go to Formulas > Math & Trig > ABS and fill in the argument box. Menu labels can differ slightly between Excel versions.

Troubleshooting

  • #VALUE! error: the referenced cell contains text or an empty-looking space. Use =ISNUMBER(A2) to test the cell, or clean the data with =VALUE(TRIM(A2)).
  • Formula shows as text: the cell is probably formatted as Text. Change it to General (Home > Number Format > General), then re-enter the formula.
  • #NAME? error: you misspelled ABS or the formula is missing quotes around text elsewhere in it. Retype the function name.
  • #REF! error: the formula points to a cell that was deleted. Undo (Ctrl+Z / Cmd+Z) or redirect the reference to a valid cell.
  • Wrong result after copying: relative references shifted unexpectedly. Use dollar signs (for example $B$2) to lock a reference in place.
  • Numbers stored as text: select the cells, click the warning icon that appears, and choose Convert to Number, or multiply by 1 in a helper column.

Frequently Asked Questions

What does ABS stand for in Excel?

ABS stands for absolute value. It returns the distance of a number from zero on the number line, always as a non-negative result.

Can ABS convert a whole column at once?

Yes. Enter =ABS(A2) in the first cell of a helper column and double-click the fill handle to copy it down the entire column instantly. In Excel versions with dynamic arrays, =ABS(A2:A100) spills the results automatically.

Does ABS work in Google Sheets too?

Yes. Google Sheets supports the identical syntax, =ABS(value), and behaves the same way.

What happens if I use ABS on a date?

Dates are stored as numbers in Excel, so ABS returns the underlying serial number of the date rather than a formatted date. It is rarely useful on dates directly.

Is there a keyboard shortcut for inserting ABS?

No dedicated shortcut exists, but pressing Shift+F3 after typing =ABS( opens the Function Arguments dialog, or you can pick ABS from Formulas > Math & Trig.

How is ABS different from removing a minus sign manually?

ABS handles both positive and negative inputs correctly and recalculates automatically when the source value changes, while manual edits do not update.