SOLVED

Very simple Division question

Copper Contributor

I'm not sure why this is not working. I'm trying to divide a cell (8) by a certain number (20)  and it gives me the answer "0" because the answer would be a decimal. Is there anyway to fix that?

6 Replies

@Gnacc1997 

Either the column width is too small to show the decimals or the number format prevents showing the decimals.

If you use QUOTIENT like this:
=QUOTIENT(8,20)
the formula returns 0 because QUOTIENT returns only the integer portion and truncates the decimal portion.
You may need to simply use this formula:
=8/20
to return 0.4 as you expected.

@Twifoo 

 

It is still not working. It keeps on giving me 0

best response confirmed by Gnacc1997 (Copper Contributor)
Solution

@Gnacc1997 

Most probably cell formatting. Not sure which version of Excel do you use, try to apply currency format with two decimal numbers (cents).

@Sergei Baklan 

 

 

Thank you. Just fixed it.

1 best response

Accepted Solutions
best response confirmed by Gnacc1997 (Copper Contributor)
Solution

@Gnacc1997 

Most probably cell formatting. Not sure which version of Excel do you use, try to apply currency format with two decimal numbers (cents).

View solution in original post