debits do not = credits due to rounding when using % to calculate

JBoyer

New Member
Joined
Oct 30, 2019
Messages
1
See below example. D671 = 41,298. 41,298 x %. All % = 100% but when the result hits the debit or credit column, debits do not = credits by a few cents. Any suggestions?

JE AMTDEBITCREDIT

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>
<strike></strike>
<strike></strike>
-41298=IF(D671>0,D671,0)=IF(D671<0,-D671,0)
=ROUND(-$D$671*VLOOKUP(A672,'Premium YTD results'!A:J,10,FALSE),2)=IF(D672>0,D672,0)=IF(D672<0,-D672,0)
=ROUND(-$D$671*VLOOKUP(A673,'Premium YTD results'!A:J,10,FALSE),2)=IF(D673>0,D673,0)=IF(D673<0,-D673,0)
=ROUND(-$D$671*VLOOKUP(A674,'Premium YTD results'!A:J,10,FALSE),2)=IF(D674>0,D674,0)=IF(D674<0,-D674,0)
=ROUND(-$D$671*VLOOKUP(A675,'Premium YTD results'!A:J,10,FALSE),2)=IF(D675>0,D675,0)=IF(D675<0,-D675,0)
=ROUND(-$D$671*VLOOKUP(A676,'Premium YTD results'!A:J,10,FALSE),2)=IF(D676>0,D676,0)=IF(D676<0,-D676,0)
=ROUND(-$D$671*VLOOKUP(A677,'Premium YTD results'!A:J,10,FALSE),2)=IF(D677>0,D677,0)=IF(D677<0,-D677,0)
=ROUND(-$D$671*VLOOKUP(A678,'Premium YTD results'!A:J,10,FALSE),2)=IF(D678>0,D678,0)=IF(D678<0,-D678,0)
=ROUND(-$D$671*VLOOKUP(A679,'Premium YTD results'!A:J,10,FALSE),2)=IF(D679>0,D679,0)=IF(D679<0,-D679,0)
=ROUND(-$D$671*VLOOKUP(A680,'Premium YTD results'!A:J,10,FALSE),2)=IF(D680>0,D680,0)=IF(D680<0,-D680,0)

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>
<strike></strike>
<strike></strike>

<tbody>
</tbody>
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
D671 = 41,298. 41,298 x %. All % = 100% but when the result hits the debit or credit column, debits do not = credits by a few cents. Any suggestions?

Not sure I understand. I certainly cannot relate that statement to the formulas that you posted.

For me, it would be better if you uploaded an example Excel file that demonstrates the problem to a file-sharing website, and post the download URL in a response here. I like box.net/files. Please verify that the download URL works when you are logged into the file-sharing website.

(Caveat: Some contributors object because they cannot or will not download external files. But often, the devil is in details that are difficult to duplicate by copying data and formulas into postings.)

Some general observations, perhaps misdirections....

Percentage calculations rarely sum to the whole. Percentages rarely sum to exactly 100%. Rounding calculations often cause "quantization errors"; again, the sum of the parts is not equal to the whole.

In many professional financial reports, this is dealt with by a footnote to the effect "sums might not agree due to rounding".

There are strategies that try to "distribute" the quantization errors. None is perfect; so I prefer the KISS approach. I could offer a general paradigm. But it would be better to fit it to your example Excel file, if possible.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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