New Tool Radar

AI for Data & Spreadsheets

How to Check Whether a Percentage in Excel Was Entered as a Whole Number

Check whether a percentage in Excel was entered as a whole number instead of a fraction of one.

Schematic with three steps: Show the stored value of each rate; Compare each stored value with the source; Divide the wrong rates by 100 and.

Excel stores 25 percent as 0.25, so typing 25 into a cell formatted as a percentage displays as 2500 percent. The mistake is easy to make when copying figures from a report that writes percentages as whole numbers, and it inflates every calculation that uses the rate by a hundred times. Check the stored value, not the display, before using the rate.

What you need

  • Excel with the percentage cells to check
  • The rates as they should be, from the source
  • A helper cell to show the stored value

Step 1: Show the stored value of each rate

Select a rate cell and change its format to General, or read the value in the formula bar. A rate meant to be 25 percent must store 0.25; a stored value of 25 means it was entered as a whole number.

Step 2: Compare each stored value with the source rate

Work through the rate column and compare each stored value with the source: divide the source percentage by 100 to get the stored value it should have. Mark every rate that is a hundred times too big.

Step 3: Divide the wrong rates by 100 and re-check the results

In a helper column, divide each wrong rate by 100 and paste the results as values over the original cells, then re-format as a percentage. Re-check one calculation that uses the rate: it must now give the expected answer.

Worked example: synthetic discount rates

The table below is a synthetic example. It shows the expected result of a percentage-entry check; no workbook was opened.

Rate Stored value Displayed as
Discount A 0.25 25%
Discount B 25 2500%
Discount C 0.10 10%
Price after Discount B Wrong Rate 100 times too big
Price after fix Correct Rate divided by 100

Expected result (UNTESTED). Discount A stores 0.25 and shows 25%, but Discount B stores 25 and shows 2500%, a hundred times too big. Dividing Discount B by 100 gives 0.25 and the correct price. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Typing 25% with the percent sign stores 0.25 correctly; the error comes from typing 25 into a percentage-formatted cell.
  • A rate stored as 25 and formatted as a number looks identical to a correct 25 in another column; check the format too.
  • Multiplying by a rate of 25 instead of 0.25 inflates the result by a hundred times, not by 25.
  • A percentage shown with no decimals can hide a rate of 25.4 percent; check the stored value for the exact figure.

Sources

See all