How To Express "Divisible By" In Excel

You can use the "divisible by" operation in Excel documents to solve problems such as uniformly allocating resources to a certain number of people. Even though this operation is not part of the list of standard operations, you can define it using two other functions, if and mod. These use the idea that if the remainder for the division of two numbers is 0, then the first number is divisible by the second.

Advertisement

Step 1

Launch your Microsoft Excel document. Locate the two numbers you want to check the divisibility property for and note the name of their corresponding cells. The name of a cell is composed of a letter and a number. For example, the first cell of the first row in your document is labeled "A1."

Advertisement

Step 2

Click on an empty cell in your document and type "=MOD(cell1,cell2)" (without the quotes) inside it, where cell1 and cell2 are the names of the cells holding the two numbers. Press "Enter" to compute the remainder for the division of the two numbers.

Step 3

Click on another empty cell and type "=IF(cell=0,'Divisible','Not divisible')" (without double quotes) inside it, where cell is the name of the cell holding the remainder of the division. Press "Enter." If the first number is divisible by the second one, Excel displays "Divisible" in this cell. if it isn't, the software shows the message "Not divisible."

TL;DR (Too Long; Didn't Read)

You can combine the two expressions into a single one, so you don't have to use two cells to express the divisibility property. Type "=IF(MOD(cell1,cell2)=0,'Divisible','Not divisible')" (without double quotes) into an empty cell, where cell1 and cell2 are the names of the two cells holding the numbers.

Advertisement

Cite This Article

MLA

Suciu, Mircea Gabriel. "How To Express "Divisible By" In Excel" sciencing.com, https://www.sciencing.com/express-divisible-by-excel-8652/. 13 March 2018.

APA

Suciu, Mircea Gabriel. (2018, March 13). How To Express "Divisible By" In Excel. sciencing.com. Retrieved from https://www.sciencing.com/express-divisible-by-excel-8652/

Chicago

Suciu, Mircea Gabriel. How To Express "Divisible By" In Excel last modified March 24, 2022. https://www.sciencing.com/express-divisible-by-excel-8652/

Recommended

Advertisement