Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets ODD Function: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The Google Sheets ODD function rounds a number away from zero to the nearest odd integer. If you type =ODD(4), you get 5; =ODD(4.1) also returns 5; =ODD(-4) returns -5. It is a quick way to force a value to an odd number without manually checking each cell. You only need a Google account and a spreadsheet; no add-ons or special permissions are required.

What You'll Need

  • A Google account with access to Google Sheets (the free web version or the mobile app).
  • A spreadsheet open in edit mode — either a new blank sheet or an existing file.
  • At least one numeric value or cell reference to test the function on.

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com, sign in, and open the file you want to work in. On mobile, open the Google Sheets app and tap the file. The steps below work the same on desktop and mobile; menu labels can differ slightly by version, device, or region.
  2. Click the cell where you want the result. Pick an empty cell so you do not overwrite existing data. For example, click cell B2 if your numbers are in column A.
  3. Type the equals sign to start a formula. Every Google Sheets formula begins with =. The cell should now show a blinking cursor after the equals sign.
  4. Type ODD and an opening parenthesis. Your cell should read =ODD(. As you type, Sheets may show a suggestion list; you can ignore it or press Tab to accept the function name.
  5. Enter the number or cell reference. Type a literal number such as 4, or click the cell that contains your number, such as A2. The formula becomes =ODD(4) or =ODD(A2).
  6. Close the parenthesis and press Enter. The formula =ODD(A2) is complete. Press Enter (or the checkmark on mobile) to commit it. The cell now displays the rounded odd integer.
  7. Copy the formula down the column if needed. Click the small square at the bottom-right corner of the cell and drag it down, or copy the cell and paste it into the cells below. Relative references adjust automatically, so =ODD(A2) becomes =ODD(A3), =ODD(A4), and so on.
  8. Check a few results against the rule. Positive numbers round up to the next odd integer: 2 becomes 3, 2.1 becomes 3, 3 becomes 3 (already odd), 3.9 becomes 5. Negative numbers round away from zero: -2 becomes -3, -2.1 becomes -3, -3 stays -3, -3.9 becomes -5. Zero returns 1.
  9. Format the output if you want whole numbers only. Select the result cells, open Format > Number, and choose Number with zero decimal places. This does not change the value, only how it looks.
  10. Save your work. Google Sheets saves automatically, but confirm the title bar no longer shows unsaved changes before you close the tab.

Common Mistakes

  • Expecting ODD to round to the nearest odd number. It does not round to the closest odd value; it always moves away from zero. So ODD(6) is 7, not 5, even though 5 is closer.
  • Forgetting the minus sign on negatives. ODD(-4) returns -5, not -3. If you need the result to move toward zero instead, ODD is the wrong function.
  • Passing text instead of a number. ODD("4") may work because Sheets coerces numeric text, but ODD("four") returns an error. Keep the input numeric or reference a numeric cell.
  • Leaving out the closing parenthesis. Sheets usually auto-closes it, but if you type over it, you get a formula parse error.
  • Using ODD where EVEN is needed. ODD always returns an odd integer; if you need an even result, use the EVEN function instead.
  • Assuming ODD changes the original number. It only returns a new value in the formula cell. The source cell keeps its original value.

Tips

  • Use ODD together with other functions, for example =ODD(SUM(A2:A10)) to round a total to the next odd integer.
  • If you need the result to stay a number for further math, do not convert it to text with formatting; keep it as a numeric value.
  • Test edge cases first: 0 returns 1, and any already-odd integer returns itself unchanged.
  • For a whole column of results, put the formula in the top cell and double-click the fill handle to copy it down automatically.
  • Remember that ODD ignores decimal places in the sense that it always returns an integer; there is no second argument for precision.

Troubleshooting

  • #NAME? error: The function name is misspelled or the cell contains a stray character. Retype =ODD( carefully.
  • #VALUE! error: The argument is text that cannot be read as a number. Check the referenced cell for spaces, letters, or hidden characters.
  • Formula shows as text: The cell may be formatted as plain text. Select it, open Format > Number > Automatic, then re-enter the formula.
  • Result looks wrong: Re-check the sign of the input. Negative inputs round away from zero, which surprises many users.
  • Formula not copying correctly: Make sure you are using a relative reference like A2, not an absolute one like $A$2, unless you want the same cell referenced everywhere.
  • Nothing happens after Enter: Confirm you are in edit mode and not viewing a protected or read-only sheet. If the sheet is protected, ask the owner for edit access.

Frequently Asked Questions

What does the ODD function do in Google Sheets?

It rounds a number away from zero to the nearest odd integer. Positive values go up to the next odd number, negative values go down to the next more-negative odd number.

Does ODD round to the closest odd number?

No. It always rounds away from zero. ODD(6) returns 7, not 5, even though 5 is numerically closer.

What does ODD return for zero?

ODD(0) returns 1, because zero is even and the function rounds away from zero to the next odd integer.

Can I use ODD on a range of cells at once?

Not directly. ODD takes a single number or cell reference. To apply it to a range, enter the formula in one cell and copy it down, or wrap it in an array formula if you are comfortable with that syntax.

What is the difference between ODD and EVEN?

ODD returns the nearest odd integer away from zero; EVEN returns the nearest even integer away from zero. Use EVEN when you need an even result.

Why do I get a #VALUE! error with ODD?

The argument is probably text that Sheets cannot interpret as a number. Check the source cell for letters, spaces, or special characters and correct it.