Currency comparison problem

peterv6

Board Regular
Joined
May 16, 2005
Messages
129
Office Version
  1. 365
I have a spreadsheet problem involving splitting and combining currency values.

All cells are formatted currency with 2 decimal places.

In cells D3 - D7 are whole dollar values adding up to $5.00 in cell D8.

Cells D9 - D13 are cents values adding up to 79¢ in D14.

I add the two cells together to total
$5.79 in cell D15.

In cell D17 is $5.79 from a different calculation.

When I compare the two, Excel says they're not equal.

If anyone sees what I'm doing wrong, I'd really appreciate you pointing it out to me. I hope my explanation is clear enough. Thanks in advance.
 

Attachments

  • Screenshot (13).png
    Screenshot (13).png
    141.6 KB · Views: 9

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
What is the calculation that gets you the $5.79 in the other cell?
I think if you have any division or infinite decimals (like one third of $1) this may happen, espcially if you're calculating things differently.
Change the number format to all the decimals you can for the cells you are looking at.

Numeric precision differences occur in Excel from time to time.
If this amount is an end result, using ROUND is useful. if you're paying fractions of cents then you need to determine how to proceed.

Please take a look at this Wikipedia on Excel's precision:
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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