Excel rounding issue.

cmerrick

Board Regular
Joined
Jun 8, 2017
Messages
78
Office Version
  1. 365
Platform
  1. Windows
I have a formula -

=ROUNDDOWN((B26/'FA Afford'!G32*12),-2)

which equates to

(£227.14 / 4.85%) * 12

On a standard calculator this gives me roughly '56,199.58762886598' but excel seems to want to round this up automatically to £56,200 in spite of my rounding down.

How can I get this to display as ''56,199.58762886598' and then round down to £56,100.00 ?
 
The fact that other values calculate "correctly", may be more down to luck, after-all you are talking a difference of only 0.42
Why not use the formula Joe suggested in post#8
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
the 'FA Afford'!G32' (4.85%) has no further decimals
Note that the number of decimals you elect to show in formatting is NOT the number that Excel will use. If there are more digits, that are not being displayed using the cell format, Excel will use them ALL (formatting just changes what is displayed, but will not change od truncate the actual value in the cell).

So, if I use the number you have for B26, and use something like 4.8451% (which rounds to 4.85% which using the format of 4 decimals), I get the 56,200 value you are seeing.
Try the formula I proposed in post 8, and it should take care of it and do what you want.
 
Upvote 0
Note that the number of decimals you elect to show in formatting is NOT the number that Excel will use. If there are more digits, that are not being displayed using the cell format, Excel will use them ALL (formatting just changes what is displayed, but will not change od truncate the actual value in the cell).

So, if I use the number you have for B26, and use something like 4.8451% (which rounds to 4.85% which using the format of 4 decimals), I get the 56,200 value you are seeing.
Try the formula I proposed in post 8, and it should take care of it and do what you want.


I know what you're saying regarding the 'exact values' but I've traced it back to the original source and the 4.85% comes from a 'keyed in' value.

I've tried your formula and it does work. I guess I'll just have to go back over a number of our old scenario and ensure the values still work out as they have done previously
 
Upvote 0
I've tried your formula and it does work. I guess I'll just have to go back over a number of our old scenario and ensure the values still work out as they have done previously
You can just change your formulas to use this versions, and that should ensure that they all work like you want.

I know what you're saying regarding the 'exact values' but I've traced it back to the original source and the 4.85% comes from a 'keyed in' value.
Out of curiousity, what do you see if the go to cell 'FA Afford'!G32 and change the cell format to show 8 decimal places?
 
Upvote 0
You can just change your formulas to use this versions, and that should ensure that they all work like you want.


Out of curiousity, what do you see if the go to cell 'FA Afford'!G32 and change the cell format to show 8 decimal places?


G32 = 4.85000000% etc
 
Upvote 0
You can just change your formulas to use this versions, and that should ensure that they all work like you want.


Out of curiousity, what do you see if the go to cell 'FA Afford'!G32 and change the cell format to show 8 decimal places?


so I have two versions of the same calculator now, one with your suggested formula and one without.

The base value of 227.1417262 (which is B26) is still being fed into both.

The one with the new formula '=ROUNDDOWN((ROUND(B26,2)/'FA Afford'!G32*12),-2)' has the correct amount of £56,100.00 and the other one '=ROUNDDOWN((B26/'FA Afford'!G32*12),-2)' still shows £56,200.00

Am I right in saying then that as far excel is concerned, the new formula is just doing 227.14/4.85*12 whereas the old one is actually doing 227.1417262/4.85%*12 and this is the issue?

I'ts just for my own understanding
 
Upvote 0
Am I right in saying then that as far excel is concerned, the new formula is just doing 227.14/4.85*12 whereas the old one is actually doing 227.1417262/4.85%*12 and this is the issue?
Yes, that is exactly what the new formula is doing.

When doing calculations, Excel uses the full value of the cells, not the formatted (visible) values.
By using the ROUND function and setting it to use exactly the same number of decimals as your cell formatting is showing, it will ensure that it uses just the numbers you see.
 
Upvote 0
Yes, that is exactly what the new formula is doing.

When doing calculations, Excel uses the full value of the cells, not the formatted (visible) values.
By using the ROUND function and setting it to use exactly the same number of decimals as your cell formatting is showing, it will ensure that it uses just the numbers you see.
Thanks a lot for your (and everyone else's') input.

Hopefully this hasn't changed my other results too much ! :)
 
Upvote 0
You are welcome!
Glad we could help.
 
Upvote 0

Forum statistics

Threads
1,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top