Formula Friday – When Your Formula Is Not Calculating As You Expected? Is Excel Wrong!?!? Displaying decimals versus Rounding in Excel


Hello and welcome to yet another #formulafriday blog post. I want to share today with you an Excel formula problem a colleague of mine asked me to look at a week or so ago. So, I thought it would be worth sharing here with you.

If you want to download the workbook for the #formulafriday 2019 Season then click on the link below.

[ddownload id=”14616″]

 

I was asked to look at worksheet which calculated the price of goods, a discounted price of goods and the price of goods converted from Sterling to Euros. On manually checking their results, (with a calculator), they saw a significant difference in their expected results – £384.48.

After assuming the difference was due to what they described as ’rounding’, they went ahead and changed the number of decimal places that Excel displayed by selecting to decrease the digits shown, but the results stayed the same.

 

So, Why Is This Happening?

This is happening due to the fact that Excel is simply is rounding the numbers for display purposes, but the formula is calculating the actual cell content, and then rounding the result for display only.

 

What Is The Solution?- use the ROUND function.

Yes, you can use the ROUND function in Excel to ensure your results are what you expected. It is really simple to use with the following syntax

=ROUND(the number you want to round, the number of decimal places to round your number to)

 

A Simple Example.

Cell A1 contains 1.254, cell A2 contains 1.253, if we sum those two numbers we see 2.507. If we try to display only two decimal places both cells display 1.25 and the total is 2.51, but we know that 1.25 plus 1.25 equals 2.50, not 2.51. So if we round the numbers at the source to 2 decimal places, get the expected result.

Using The ROUND Function.
So, let’s apply the same ways of working to our issue in our data conversion above. We can round the conversion rate to 2 decimal places, within our conversion formula.
This now matches the manual check of calculation. Excel is actually rounding to 2 decimal places the conversion rate, then using that number in the formula. The issue was explained and resolved.

 

If you want more Excel and VBA tips then sign up to my monthly Newsletter where I share 3 Excel Tips on the first Wednesday of the month and receive my free Ebook, 30 Excel Tips.

1

If you want to see all of the blog posts in the Formula Friday series Click Below

 

How To Excel At Excel – Formula Friday Blog Posts.

 

 

More Excel Tips_New1
Learn Excel With Our Excel Online Courses

 

 

Barbara

Barbara is an experienced data analyst with over 20 years of experience. Author of the How To Excel At Excel Top 50 Excel tips Ebook, YouTuber and Excel Blogger.

Recent Posts