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.

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

More like this

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

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.