Rounding to match invoice

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,844
Office Version
  1. 365
Platform
  1. Windows
Hi all,
Every month I do some manual calculations, in which I have to manually round number to two decimals to match the invoice amount, here is an example, the second column rounded to 2 decimals, =round(…,2), that comes up to 320.05 but the actual should be 320.04, therefore I manually adjust the amounts to match the invoice amount.

Is there an easy way of doing this?

10.8199555

10.82
18.4957088

18.50
9.5174781

9.52
8.47837347

8.48
29.9121008

29.91
33.7986749

33.80
29.9121008

29.91
10.4897502

10.49
30.3520424

30.35
8.51195562

8.51
29.9121008

29.91
8.36794692

8.37
30.3520424

30.35
0.52941586

0.53
9.90074355

9.90
8.28971675

8.29
30.0682875

30.07
2.81809957

2.82
9.5174781

9.52
320.043972

320.05

<tbody>
</tbody>

Regards,
 
The question is that when I sum column 1 below, the total comes to 320.4 and that is correct, but when I round it using round function, the total is 320.05 that is not the amount in the invoice, and you can see the individual amounts are same in the two columns, but the total is different.
2 decimals Rounded
10.819955510.8210.82
18.495708818.5018.50
9.51747819.529.52
8.478373478.488.48
29.912100829.9129.91
33.798674933.8033.80
29.912100829.9129.91
10.489750210.4910.49
30.352042430.3530.35
8.511955628.518.51
29.912100829.9129.91
8.367946928.378.37
30.352042430.3530.35
0.529415860.530.53
9.900743559.909.90
8.289716758.298.29
30.068287530.0730.07
2.818099572.822.82
9.51747819.529.52
320.043972320.04320.05

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
The question is that when I sum column 1 below, the total comes to 320.4 [sic; 320.04] and that is correct, but when I round it using round function, the total is 320.05 that is not the amount in the invoice

Nothing can be done about that. It is a numerical fact that the rounded sum of the parts might not be the same as the sum of the rounded parts. That is why most financial statements have a footnote to the effect that "numbers may not add up due to rounding" [1].

For a customer invoice, it is a "best practice" to sum the rounded line items. So 320.05 is following "best practice" guidelines.


-----
[1] https://www.investopedia.com/terms/r/rounding-error.asp
 
Last edited:
Upvote 0
Nothing can be done about that.

I mean: if you simply sum the rounded amounts.

A dubious alternative is to modify one or more rounded amounts so that their total is the same as rounded sum of the unrounded amounts.

For example, and arguably a bad approach: round all but the last amount as usual. For the last amount, use a formula of the form:

=ROUND(SUM(A1:A19),2) - SUM(B1:B18)

To demonstrate the flaw of that approach, enter 10.005 into A1:A19, and enter =ROUND(SUM(A1:A19),2) into A20. Enter =ROUND(A1,2) into B1 and copy B1 into B2:B18. In B19, enter =A20-SUM(B1:B18). The value in B19 is 9.92, significantly different from 10.005.

(Some people mistakenly think that using so-called banker's rounding will avoid such major differences. Obviously not for this example.)

There are alternatives that minimize the error in the last amount by distributing the error among all of the amounts. Either way, these approaches result in misstating one or more individual amounts.
 
Upvote 0
Thanks Joeu,

Yes, I have done that, I have tried everything, but as you said, there is a flaw of this approach. I just adjust the number somewhere, where it is least effective.
thanks again for your time.
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,849
Members
449,096
Latest member
Erald

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