The DIVIDE function in Google Sheets returns one number divided by another, using the syntax DIVIDE(dividend, divisor). It is equivalent to using the / operator, so =DIVIDE(10, 2) and =10/2 both return 5.
How the DIVIDE Function Works
DIVIDE is a simple function that takes exactly two arguments:
- dividend – the number to be divided (the numerator).
- divisor – the number to divide by (the denominator).
Both arguments can be hardcoded numbers, cell references, or formulas that evaluate to numbers. For example, if cell A1 contains 20 and B1 contains 4, =DIVIDE(A1, B1) returns 5. The function is part of Google Sheets’ Operator category, alongside other math functions like ADD, SUBTRACT, and MULTIPLY.
DIVIDE vs. the Slash (/) Operator
In most cases, you can use either =DIVIDE(10, 2) or =10/2 and get the same result. However, there is one key difference: how they handle division by zero. When you use the / operator and the divisor is zero, Google Sheets displays a #DIV/0! error. The DIVIDE function does the same – it also returns #DIV/0! if the divisor is zero. So functionally, they are identical in error handling. Some users prefer DIVIDE because it makes the formula more readable, especially when dividing two cell references, but the slash operator is more concise and more familiar to most spreadsheet users.
Step-by-Step: Using DIVIDE in a Sheet
- Open your Google Sheets document in a web browser.
- Click on the cell where you want the result to appear.
- Type
=DIVIDE(to start the function. - Enter the dividend, then a comma, then the divisor. For example,
=DIVIDE(15, 3). - Press Enter. The cell shows the quotient, 5 in this case.
You can also use cell references: if you have values in A2 and B2, type =DIVIDE(A2, B2) and press Enter. The result updates automatically if you change the values in those cells.
Common Errors and How to Fix Them
The most common error with DIVIDE is #DIV/0!, which appears when the divisor is zero or empty. To avoid this, you can wrap the function in an IFERROR or IF statement. For example, to return a blank cell instead of an error, use =IFERROR(DIVIDE(A2, B2), ""). Another error you might see is #VALUE!, which occurs if either argument is text that cannot be coerced to a number. To fix this, ensure that the cells you reference contain numeric values, not text strings.
Practical Examples and Use Cases
DIVIDE is useful for calculating ratios, percentages, or unit prices. For instance, if you have total sales in column A and number of units sold in column B, you can compute the average price per unit with =DIVIDE(A2, B2). To calculate a percentage, you could divide a part by a total and then format the result as a percent. For example, if C2 holds the number of completed tasks and D2 holds total tasks, =DIVIDE(C2, D2) gives the completion rate; apply Format > Number > Percent to display it as a percentage.
DIVIDE in Array Formulas and with Other Functions
You can use DIVIDE inside array formulas to divide entire ranges at once. For example, with values in A2:A10 and B2:B10, you can enter =ARRAYFORMULA(DIVIDE(A2:A10, B2:B10)) in cell C2, and it will fill down the results for each row. You can also combine DIVIDE with functions like SUM or AVERAGE. For instance, to find the average of two quotients, you could write =AVERAGE(DIVIDE(A2, B2), DIVIDE(A3, B3)). However, for simple operations, using the slash operator inside an array formula (e.g., =ARRAYFORMULA(A2:A10/B2:B10)) is often more straightforward.
Frequently Asked Questions
Is DIVIDE the same as using / in Google Sheets?
Yes, DIVIDE(dividend, divisor) is functionally identical to dividend/divisor. Both return the quotient and both produce #DIV/0! if the divisor is zero. The only difference is readability – some users find DIVIDE clearer when the formula is complex.
What if I need to divide by zero and want a specific result?
Google Sheets will show #DIV/0! by default. To return a custom value, use =IFERROR(DIVIDE(A2, B2), "Not available") or =IF(B2=0, 0, A2/B2) to return 0 instead of an error.
Can I use DIVIDE with negative numbers or decimals?
Yes, DIVIDE works with any real numbers, including negatives and decimals. For example, =DIVIDE(-10, 4) returns -2.5.
Does DIVIDE work in Excel?
No, DIVIDE is a Google Sheets function and does not exist in Microsoft Excel. In Excel, you use the slash operator (e.g., =A1/B1) or the QUOTIENT function, which returns only the integer portion of a division.
How do I divide a column by a constant number?
You can use an absolute reference to the constant. For example, to divide each value in A2:A10 by the number in C1, enter =ARRAYFORMULA(A2:A10/$C$1) in cell B2. The dollar signs lock the reference to C1 so it doesn’t change as the formula fills down.
Related
- Generate Random Number in Range SQL: How-To
- Shortcut for Going Back? Browser & App Shortcuts
- C Program to Generate a Random Number
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Compressing Images in PowerPoint: Steps and SettingsIn PowerPoint for Microsoft 365 on Windows, select a picture, go to Picture Format > Compress Pictures, choose…
- Conditional Formatting Between Two Values in ExcelIn Excel for Microsoft 365 on Windows, select the cells you want to format, then choose Home >…
- Microsoft Excel Budget Tracking Template: How to Use ItYes—Microsoft Excel for Microsoft 365 offers budget templates you can open from File > New: search for “budget,”…
- Google Sheets Query Join Two Tables: How ToTo join two tables in Google Sheets, use the QUERY function with ARRAYFORMULA and IFERROR to simulate a…
- Can You Paste in Reverse in Excel? Methods That WorkNo—Excel does not have a built-in Reverse Paste command that reverses copied cells as you paste them. To…
- Create a Distribution List in Outlook on the WebTo create a distribution list in Outlook on the web, open People, choose New contact > New contact…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.