Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Round values before SUM()

Tags:

excel

Our customers use formulas in their input fields. Thats why their values sometimes contain decimal places. We can't round each field, cause it would be overrided by their formulas and input.

I have a field, which requires numbers with no decimal places. Is there a possibility to SUM() the ROUNDED values, something like a ROUND() function that uses a range of inputs?

like image 847
Jannik Avatar asked Mar 16 '23 21:03

Jannik


1 Answers

I think what you may want is something like this:

=SUM(ROUND(A1:C1,0))  

entered with Ctrl+Shift+Enter. The 0 is for the extent of rounding (no decimal places) but can be increased. So with data in each of A1:C1 (the range may be increased) of 12.4 the result is 36, with data of 12.6 the result is 39.

like image 83
pnuts Avatar answered Mar 24 '23 15:03

pnuts