SOLVED

# Decimal Places Difficulty

Highlighted
Occasional Contributor

# Decimal Places Difficulty

Hi

As can be seen in the attachment, I have the display set to currency and to two decimal places but the values show as .00 instead, such as 10/3 should read 3.33 but displays 3.00. So, how can I get the two decimal places to show the actual values rather than zeros.

Thanks.

R

6 Replies
Highlighted

# Re: Decimal Places Difficulty

QUOTIENT returns the integer portion of a division. The decimal portion will never be included in the returned value.

Highlighted

# Re: Decimal Places Difficulty

OK, thanks.

I am just a basic user of Excel and used quotient because it's the first one I came across that would divide one number into another.

So, is there a function I can use in currency that will include the decimal portion?

Thanks.

R
Highlighted
Solution

# Re: Decimal Places Difficulty

Hi

So per the screenshot you would type

=F55/G55
Highlighted

# Re: Decimal Places Difficulty

The exchange between you and Wyn Hopkins points up a real irony here. You describe yourself as a basic user of Excel, yet you were assuming that there had to be a "fancy" solution to the division of one number by another. In fact, at the most basic level you've got all of the basic arithmetic functions we learned in primary school:
SUBTRACTION by =A1-B1
MULTIPLICATION by =A1*B1 (granted, in primary school we used "x")
DIVISION by =A1/B1

Now, because it's very common to add a whole series of numbers, usually in a column, they've included a fairly basic function called SUM, as in =SUM(A1:Z1)

Anyway, I'm writing just to say, Excel has a lot of power, a LOT, but as you've discovered, it can backfire if you don't take the time to actually read a little bit. When you get a result that doesn't make sense--as you were--go back and look at the description (use the "Help" menu and search for the name of the function used)....

To make you feel better here, I've been using Excel since (in a sense) before it existed. I began programming on mainframes in the early '70s, moved quickly to PCs when they became available, used in succession, Lotus 1-2-3, Quattro (few remember it), and then Excel in all its generations. BUT, here's where you can find some relief, until your question was posted here, I'd never heard of the QUOTIENT function (it's relatively new). So thank you for adding to my knowledge of Excel.
Highlighted

# Re: Decimal Places Difficulty

That's done the trick. Thanks!

R
Highlighted

# Re: Decimal Places Difficulty

'Relatively new' is, by definition, a relative term!  I found a list of functions that indicates that QUOTIENT existed and was not newly introduced in 2010.  Like you, I only came across the function much later and it took a while to realise that it performs an integer divide.  Now it is a regular part of my repertoire used to unpivot crosstab tables and arrays.  Used with a base 1 index k, the formulas

= 1 + QUOTIENT( k-1, n )

= 1 + MOD( k-1, n )

provide row and column indices for the 2D lookup.