Excel number formats

Discussion regarding the spreadsheet functionality of Bet Angel.
Post Reply
User avatar
Derek27
Posts: 23668
Joined: Wed Aug 30, 2017 11:44 am
Location: UK

Does anyone know how to get rid of the annoying decimal point for whole numbers?

For example, 10 formatted as "0.##" produces "10.".
User avatar
ShaunWhite
Posts: 9731
Joined: Sat Sep 03, 2016 3:42 am

so you'd want ...
10.1
10
25.232

I think you can do it with conditional formatting and 'use a formula to determine which cells to format' eg a1 = int(a1)
Where that's the case format it as zero DPs or a custom ###,### format.

I'm not 100% about that but it might work, because I don't think you can do it with normal cell formatting.
User avatar
Derek27
Posts: 23668
Joined: Wed Aug 30, 2017 11:44 am
Location: UK

Cheers Shaun, I'll have a go.
User avatar
Derek27
Posts: 23668
Joined: Wed Aug 30, 2017 11:44 am
Location: UK

No joy with conditional formatting but I found a formula that does the trick.

=IF(B15=INT(B15),TEXT(B15,"0"),TEXT(B15,"0.00"))
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

formatting as 'general' doesn't do that?
User avatar
Derek27
Posts: 23668
Joined: Wed Aug 30, 2017 11:44 am
Location: UK

sa7med wrote:
Mon Aug 05, 2019 7:20 am
formatting as 'general' doesn't do that?
It does, but it displays an unlimited number of decimal places whereas I just want to go up to two decimals.
Post Reply

Return to “Bet Angel - Spreadsheet / Excel chat”