Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2015, 12:47 AM
Richard121 Richard121 is offline Errors in financial calculations Windows 7 64bit Errors in financial calculations Office 2013
Novice
Errors in financial calculations
 
Join Date: Feb 2015
Posts: 10
Richard121 is on a distinguished road
Default Errors in financial calculations

All, I attach (I hope) a very simple petty cash spreadsheet. All entries are either values in GBP and pence - ie only to two places; or additions and subtractions, which should, logically, be limited to two places. None of the entries are caused by division (or multiplication), which could cause values beyond the two places.


I have expanded the column width to show many places of decimals. Can anyone explain why Excel gets its sums wrong? (And then appears to correct itself.) And what can I do about it?
Thanks
Richard
0 Petty Cash 2015 Mk II.xlsx
Reply With Quote
  #2  
Old 05-05-2015, 02:35 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Errors in financial calculations Windows 7 64bit Errors in financial calculations Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

This has probably to do with floating point arithmetic used by Excel. See https://support.microsoft.com/en-us/kb/78113/ for explanations and workarounds
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 05-05-2015, 03:17 AM
Richard121 Richard121 is offline Errors in financial calculations Windows 7 64bit Errors in financial calculations Office 2013
Novice
Errors in financial calculations
 
Join Date: Feb 2015
Posts: 10
Richard121 is on a distinguished road
Default

Thanks, Pecoflyer. I have looked at the link.
Although the explanation is clear the fixes are either inaccurate or inelegant. But here is a curiosity: if you take an empty cell and enter =17.73-25.00 you get -7.27, which is correct.
So the link explanation does not really solve the problem of why in my spreadsheet G18-F19 gives the wrong result in G19. In neither G18 or F19 are there any floating point errors, and Excel has shown it is perfectly capable of doing the calculation correctly!
Richard
Reply With Quote
  #4  
Old 05-06-2015, 09:43 AM
Chancy Chancy is offline Errors in financial calculations Windows 7 64bit Errors in financial calculations Office 2010 64bit
Advanced Beginner
 
Join Date: Jan 2015
Posts: 32
Chancy is on a distinguished road
Default

This is both annoying and alarming, 'eh?

I removed all the conditional formatting from the sheet.

Would you try that?
For me, the results were that only G10, G16, and G21, had extra wrong bits added.

Doesn't your original have more cells that than with wrong values? I think G30 was wrong when I first looked at the sheet with conditional formatting.

Makes no sense to me, I've seen plenty of simple formulas work just fine, although I'm using USD and not GBP.

What happens if you re-do the sheet using USD? With or without conditional formatting?
Reply With Quote
  #5  
Old 05-06-2015, 09:45 AM
Chancy Chancy is offline Errors in financial calculations Windows 7 64bit Errors in financial calculations Office 2010 64bit
Advanced Beginner
 
Join Date: Jan 2015
Posts: 32
Chancy is on a distinguished road
Default

Also try creating a new workbook, start fresh.
Also check that you don't have any circular references floating about in any open workbook.

(I'm using MS Office Professional Plus 10)
Reply With Quote
  #6  
Old 05-07-2015, 12:23 AM
Richard121 Richard121 is offline Errors in financial calculations Windows 7 64bit Errors in financial calculations Office 2013
Novice
Errors in financial calculations
 
Join Date: Feb 2015
Posts: 10
Richard121 is on a distinguished road
Default

Thanks, Clancy

I have looked at the spreadsheet and realise that the IFs are unnecessary: so I have removed them. I have no idea why I put them in in the first place.
However, it makes no difference. Nor does changing currency or to number. The calculation is the calculation: the currency plays no part and is only an add-on (probably a bit of coding that concatenates the symbol and the arithmetic answer).

So I am still hoping for ideas.

Thanks

Richard
Reply With Quote
  #7  
Old 05-07-2015, 12:52 PM
Chancy Chancy is offline Errors in financial calculations Windows 7 64bit Errors in financial calculations Office 2010 64bit
Advanced Beginner
 
Join Date: Jan 2015
Posts: 32
Chancy is on a distinguished road
Default

I had inadvertently changed your G5 formula, so the results for the following rows in G, changed. So removing the conditional formatting wasn't the problem Sooo I haven't got a clue, just worry about Excel's math.

Would love to see you test this in USD.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors in financial calculations Tiered Fee Calculations lynchbro Excel 5 07-17-2014 11:01 AM
Errors in financial calculations Financial Data Organization captain_hawkeye Excel 1 06-14-2010 04:09 AM
Errors in financial calculations Federal financial rounding? markg2 Excel 6 05-26-2010 09:54 AM
Formatting financial ratios jtrobinson Word 0 01-19-2010 06:46 AM
Errors in financial calculations Can I do calculations with times? cubsfan_1 Excel 1 01-14-2010 06:55 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:10 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft