The simple task of displaying decimal places sometimes causes angst for spreadsheet users. If you have a list of both large and small numbers, there's tension between rounding the small numbers to whole values and making the large numbers harder to read by adding two trailing zeros.

In this article, I'll describe how to add decimal places on demand by way of using a custom number format. In Part 2 of this series, I'll demonstrate an alternative that uses the MOD function along with Excel's Conditional Formatting feature.

Figure 1 shows a sample report with sales figures. Columns C and D both show currency amounts, so the same formatting can be applied to all cells in those columns. However, in column A, rather than displaying the amount in cell A2 as 3,383.00, we'd like to present it as 3,383, but simultaneously show the amount in cell A3 as 0.50.

### About David Ringstrom, CPA

David H. Ringstrom, CPA, is an author and nationally recognized instructor who teaches scores of webinars each year. His Excel courses are based on over 25 years of consulting and teaching experience. His mantra is “Either you work Excel, or it works you.” David offers spreadsheet and database consulting services nationwide.

## Replies

## Please login or register to join the discussion.

This is a lifesaver for a researcher who makes A LOT of tables...

Fantastic! Thank you for the feedback.

Good info

Thanks, Dery! I appreciate the feedback.

I want to round up or down a calculation in a cell. how do I do this

Excel offers several ways to round calculations. I'd start with the =ROUND() function (http://office.microsoft.com/en.... If you have a situation that this won't cover, post some additional details and I'll be glad to elaborate further.

In the same format, can I add an extra condition that says if 0 then show "-"

I need to take a number that is actually currency and add the decimal point in the correct place. In other words, the number 12345 is actually 123.45. How can I make this happen? Or is it impossible?

I want to add 0 in front of all values which ends with +11

Conditional formatting cannot be used in this fashion. You'll need to use an IF statement and concatenation instead.

I modified the format to [=0]#,##0;[<>0]0.000 to avoid 0 values converts to decimal point. Or is there any better method?

Btw, thank youuuuuuuuuuuuuuuuuu a lot!! You saved me.

Great advice! You have saved somebody with a whole lot of bland spreadsheets a lot of time! I can't thank you enough!

I was looking for a way to only display the decimal where there is one. Let's say I have 1/3, 2 even, and 4.3. I'd want it to display 0.33, 2, and 4.33. Instead I have either 0.33, 2.00, and 4.33 or 0.33, 2, and 4. With custom number formats I can get 0.33 and 2. and 4.33, but I want to remove that extra decimal.

Am I making any sense?

please advise me to how to add non-roundup decimal cell with round up decimal cell which result will be shown in non roundup format and also the result will be display as the sum after the roundup not the result calculate by the excel as its done exactly.

I cannot figure out how to keep my .00 in the column. For example I try to convert a cell containing 4500 into 45.00 but the zeros keep disappearing with the "100" formula or if I try to change the decimal point it just adds 4500.00. Please help. Thank you!

I'm just now running across your question. As far as I know conditional formatting cannot be used in the fashion that you're describing. You'll have to physically divide the numbers by 100.

Looks like Excel has an undocumented limit of a maximum of two conditions per number format. Also, the bracketed conditions can either come before or after the number format that they apply to.

Thank you man. You saved my day. This was exactly what I was looking for the past 2 days. God bless you man.

Btw, how did you get this idea? Means how did you that the cell formatting takes precedence over normal conditional formatting or otherwise?

I've searched all over for a total solution to my en devour with no avail. I am doing a commission table. The commission amount is to show with the % sign....so it as an example 10% or if its a partial than 10.5%. It than needs to calculate the amount of the sale by that percentage - say the sale is $10,000.00 and the commission is 10.5% than the commissioned earn would be $1050.00

I've tried everything to get the commision % to show the decimal only when it involves a 1/2 of a percentage, with no luck. Any suggestions?

Thanks

## Please login or register to join the discussion.