• 461K Members
• 5,624 Online
• 559K Conversations

Highlighted
New Contributor

# 2 decimal places - help please

I am trying ti shortcut a solution yet cannot get the result to display correctly. I am adding text (Subtotal £.....) to the equation of adding one number to another from another spreadsheet tab (D9+D10) and trying to get the answer to display to 2 decimal places. This works fine when the answer is not a whole number. FOr example. If the answer is £4156.87 then this works fine however, if the answer is £2250.00 the result only shows as "Subtotal £ 2250" not the "Subtotal £2250.00" that I want to see. I tried setting the cell to number, currency, etc. etc. but this does not help, any suggestions please?

ACTIAL FORMU

="Subtotal   £ "&ROUND(('Summary and rates'!D9+'Summary and rates'!D10),2)

5 Replies

# Re: 2 decimal places - help please

Try this one:

="Subtotal £ "&TEXT('Summary and rates'!D9+'Summary and rates'!D10,"0.00")

# Re: 2 decimal places - help please

Perfect, thank you. I had just discovered the answer when you replied although the other solution says use "##.##" instead of your zeros

# Re: 2 decimal places - help please

Another variant is to keep resulting cell value as the number and apply to it custom number format as desired. That allows to use this number in other calculations without back transforming from text to number.

For example, you have 2250 as result of some calculations:

Click Ctrl+1 on the cell and apply custom format

"Subtotal "£#,##0.00; "Subtotal -"£#,##0.00;"Subtotal" £#,##0.00;

First group separated by semicolon is for positive numbers, next to negative and when for zero.

# Re: 2 decimal places - help please

Thank you Sergei, I didn't realise you could customise that far. If someone else opens my spreadsheet and does not have that customisation set up will it still display okay?

# Re: 2 decimal places - help please

Yes, custom number format is available for everyone as any other format. The only difference you may apply format from menu (e.g. Currency, Number, etc.), when format code will be generated automatically. Or you may add it manually using Custom, in this case you have more options for formatting.

That's a lot of info about custom number formats with samples, first what Google returns is https://exceljet.net/custom-number-formats

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies