• 469K Members
• 4,779 Online
• 567K Conversations
SOLVED

## Unable to set some cells to two decimal places

Occasional Contributor

# Unable to set some cells to two decimal places

Hi

The attachment shows an account book I'm working on. The problem is that I can't get some cells to show to only two decimal places, while others will.

Column S is an amount ex-tax, column T is 20% tax on the column S amount [using the formula =(S323)*20%], and column U is the total of columns S and T. Notice that £200.33 * 20% = £40.066p but cell T correctly shows it as £40.07p because I have it set to currency, showing to two decimal places; so column U correctly shows £240.40p (£200.33 + £40.07p).

However, notice cell Z326, which is simply cell Z325 minus cell U324 (showing in the formula bar as =IMSUB(U324,Z325). Where cell U324 correctly shows £240.40p, cell Z326 should also show £240.40p, but it doesn't, it shows £240.396 instead, which is £200.33p plus £40.066p. Therefore, for some reason, cell U324 shows to two decimal places but cell Z326 won't. Notice also cell N327 (which is cell T324 minus cell M324) also shows the lack of two decimal places.

With cells N327 and Z326, I have them both successfully set to currency. However, neither cells (along with many other cells) will respond to selecting two decimal places, either via the 'home tab > number group > format cells / currency, and selecting 2 decimal places', or via the 'increase/decreas' decimal buttons on the 'home tab, number group', buttons.

So, how can I get them to show to two decimal places only?

Thanks.

6 Replies

# Re: Unable to set some cells to two decimal places

Hi,

Based on your screenshort currency format is not set for these cells. Try to stay on any of these cells in question and press Ctrl+1, formatting window shall show

if everything is correct with formatting. If not, change the format here.

# Re: Unable to set some cells to two decimal places

Hi

As shown in screenshot 1, one of the target cells (Z326) is selected, and you can see that it is set to currency, to two decimal places. However, for some reason, this, and the other cells that are not cooperating (such as N327), will not act as though they are currency cells to two decimal places; as shown in screenshot 2, they seem to act as though they are set to 'general'.

Any ideas how to rectify this?

Regards

R

# Re: Unable to set some cells to two decimal places

Hi,

That could happen if your cell initially was in text format, applying another format won't convert text to number automatically. Try to stay on such cell, F2 and Enter

# Re: Unable to set some cells to two decimal places

Thanks for the reply but no joy I'm afraid.

I highlighted the cell (Z326) and hit Fn+F2, which made the cells formula [=IMSUB(U324,Z325)] appear in the cell.  I then hit Enter, which just made the green selection border around the cell move one cell down, so the cell below Z326 became selected. This had no effect on the number in cell Z326, still showing to three decimal places.

What I've noticed, however, is that this problem is only occurring in cells that have =IMSUB in the formula; all the others without IMSUB work fine.

Any ideas?

R

Solution

# Re: Unable to set some cells to two decimal places

Oops, sorry, I missed first time you use IMSUB. That function returns the difference of two complex numbers as the text (https://support.office.com/en-us/article/imsub-function-2e404b4d-4935-4e85-9f52-cb08b9a45054). You don't need it all. Instead of =IMSUB(U324, Z325) use simply

`=U324-Z325`

# Re: Unable to set some cells to two decimal places

That's done the trick! Thanks for your help.

Cheers

R

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
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies