ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Division (https://www.excelbanter.com/excel-worksheet-functions/141391-division.html)

EK

Division
 
I have a Col A of numbers. I want the result in Col B to return the value if
it can be fully divided by a certain number, e.g. 5, or else return a zero.
Does anybody know what should be the formula in Col B to get those results?

Col A Col B
------ ------
23 0
45 9
12 0
16 0
25 5

David Biddulph[_2_]

Division
 
=IF(MOD(A2,5),0,A2/5)
--
David Biddulph

"EK" wrote in message
...
I have a Col A of numbers. I want the result in Col B to return the value
if
it can be fully divided by a certain number, e.g. 5, or else return a
zero.
Does anybody know what should be the formula in Col B to get those
results?

Col A Col B
------ ------
23 0
45 9
12 0
16 0
25 5




H.S.SHASTRI[_2_]

Division
 


"EK" wrote:

I have a Col A of numbers. I want the result in Col B to return the value if
it can be fully divided by a certain number, e.g. 5, or else return a zero.
Does anybody know what should be the formula in Col B to get those results?

Col A Col B
------ ------
23 0
45 9
12 0
16 0
25 5


YOU CAN USE BELOW MENTIONED FORMULA

=IF(MOD(A2,5)=0,A2/5,0)

H S SHASTRI

INDIA


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com