HomeGoogle DocsSpreadsheetHow to Use ODD Function in Google Sheets

How to Use ODD Function in Google Sheets

Published on

Learn here all about the ODD function in Google Sheets. This is another quick Google Sheets tutorial related to functions.

ODD is a math function in Google Doc Sheets. The function ODD is used to round up numbers in Google Sheets. Not just rounds up, it rounds a number up to the next greatest odd number.

Let me take you to the Syntax and examples of the ODD function in Google Sheets.

Must Check: Google Sheets Function Guide (learn all popular Google Sheets functions)

The Syntax of the Function ODD in Google Sheets:

ODD(value)

In this syntax of ODD, the argument value can be a negative number, positive number, or zero. Wrap this formula with ARRAYFORMULA and then read the ‘value’ argument as ‘values’.

Didn’t get? See the examples to Google Sheets ODD Function.

How to Use the ODD Function in Google Sheets

Examples of the use of the ODD function:

The Function ODD with Negative Numbers

Formula:

=ODD(-4)

Result: -5

Formula:

=ODD(-5)

Result: -5

Formula:

=ODD(-100.25)

Result: -101

The Function ODD with Positive Numbers

Formula:

=ODD(126)

Result: 127

The Function ODD with Value Zero

=ODD(0)

Result: 0

How to Use the ODD Function in an Array in Google Sheets

When you want to round up a range of cells the next greatest odd numbers, use the ArrayFormula with the ODD. This example elaborates on this usage.

odd function in Google Sheets in an array

Hope you could now use the ODD function in Google Sheets to round numbers up. In the below example I am going to populate all the odd numbers from 1 to 100 with a one piece of code.

The following formula is the combination of ODD, UNIQUE, ARRAYFORMULA and ROW.

=ARRAYFORMULA(UNIQUE(ODD(ROW(A1:A99))))

Other than the detailed ones above, I don’t find much use of the ODD function in Google Sheets. Of course, it can be useful in data analysis. But for me, it is just another function.

I normally use the ROUND functions and for time-related rounding, I use either of the Floor or Ceiling functions.

Related Functions:

1. FLOOR, 2. CEILING, 3. MROUND, 4. ROUND, 5. EVEN

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Excel: Month Name to Number & Number to Name

This tutorial showcases the most efficient formulas for converting a month name to a...

Get the First or Last Row/Column in a New Google Sheets Table

If you've recently started using the new Google Sheets TABLE functionality, you may find...

UNIQUE Function in Visible Rows in Google Sheets

The UNIQUE function doesn't inherently include only visible rows when it returns values, discarding...

Customizing Alternating Colors of a Table in Google Sheets

Google Sheets' new table feature offers limited options for customizing colors. While you can...

More like this

Get the First or Last Row/Column in a New Google Sheets Table

If you've recently started using the new Google Sheets TABLE functionality, you may find...

UNIQUE Function in Visible Rows in Google Sheets

The UNIQUE function doesn't inherently include only visible rows when it returns values, discarding...

Customizing Alternating Colors of a Table in Google Sheets

Google Sheets' new table feature offers limited options for customizing colors. While you can...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.