Summing with displayed values rather than absolute ones-help

Barbarte

Board Regular
Joined
Dec 13, 2006
Messages
125
Hi Guys,

I'm having a problem with invoices.
we issue invoices to people, obviously rounded up to the nearest cent.
however, even though the values appear to be rounded up, in fact they are not. and excel still makes calculations on the un-rounded value.
this is fine and dandy for one or two products, but once sales go above a certain amount things don't add up any more and it causes problems like below:
Book1
ABCD
1
21.501.50
31.501.50
41.501.50
51.501.50
61.501.50
71.501.50
81.501.50
91.501.50
101.501.50
111.501.50
12
13Total:15.0415.00
14
Sheet1


Is there a way to Sum so that excel takes the rounded figure as the figure to sum rather than the absolute figure behind whats displayed in the cell??

thanks,

Paul.

Oh yeah, in the example above the cells are rounded to two decmal places, the actual value is €1.504 I want excel to sum the displayed value instead of that one.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Paul

Wouldn't you be best off to ensure the invoice value is actually rounded to 2 dp in the first place before you come to do any sum calculations on these values? Otherwise you're compensating for errors in your source data (no customer could pay you €0.004 for example). Just my thoughts.
 
Upvote 0
cool!

thanks,

so if I wanted to round to 4 places would it be:


=SUM(ROUND(B2:B12,4))


also, what does Ctrl+Shift+Enter do to make that work?

thanks,
 
Upvote 0
Hi Paul

Wouldn't you be best off to ensure the invoice value is actually rounded to 2 dp in the first place before you come to do any sum calculations on these values? Otherwise you're compensating for errors in your source data (no customer could pay you €0.004 for example). Just my thoughts.

Yep, in an ideal workd I would.
but I deal with music royalties which are all worked out as % of dealer prices which run to multiple decemal places.
Can't I use the above formula to round the royalty calculations when I'm summing them in the first place.
then from then on it shall all be in order?
 
Upvote 0
The way I would approach it is that you can't invoice a value with more than 2 decimal places, so the invoice must be rounded to 2 dp. However, the invoice could be made up of 10 items (which might be values to 6 decimal places, for example). If you don't want these 10 items rounded before they are summed (and hence invoiced) then you could use:

=ROUNDUP(SUM(A1:A10),2)

However, if you wanted them rounded up before they are summed, you could either incorporate the ROUND within the formula that is working out the royalty ie:

=ROUNDUP(CashValue*Royalty%,2)

or you could, as BJungheim advised, use:

=SUM(ROUNDUP(A1:A10,2))

(confirmed with Ctrl+Shift+Enter).

My personal preference in this second instance would be for rounding every calculated line (ie rather than the array formula) because it is plainly clear what is being rounded. However it is a personal preference thing.
 
Upvote 0
Thanks everyone, I think I've got a handle on it now.
I will round up on a line by line basis and the rest will sort itself out.

Tools>Options>Calculation Tab. Select "Precision as displayed"

lenze

That idea is too extreme as it corrupts the initial data.

Thanks for all your help. :cool:
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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