Rounding Function

abacon1960

Board Regular
Joined
Jul 28, 2014
Messages
54
I have a spreadsheet that is calculating a price per square foot of a building. The cell is formatted to Accounting with 2 decimal points.

This is what is should be based on my calculator tape
52,000 sf x $61.68 = $3,207,360

This is what the cell multiplication tells me
52,000 x $61.68 = $3,207,149.40

If you take the price per sqft manually to 5 decimal points ($61.67595) you get the correct amount if I multiply on my calculator.

What am I missing here?

Thank you!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Where is that $61.68 coming from?
Is that some sort of calculated field?

Note that changing the formatting only changes what is displayed, NOT what is stored or used for calculations.
If you want that, then you need to round off the value used in your multiplication, i.e.
if sf is in cell A1 and price is in cell B1, then:
Code:
=A1 * ROUND(B1,2)
 
Upvote 0
Here is what I have in Excel and then I will show you manually via calculator what I came up with.


EXCEL
Cell = A2/A3 = 2,467,038/40,000 = 61.67595 (Cell A4) (cell set to 2 decimal points and rounds to 61.68

Cell = A10 * A4 = New Amount = 52,000 * 61.68 = $3,207,149.40


MANUALLLY
If you manually calculate via calculator 52,000 * 61.68 I GET $3,207,360

If I manually take 61.68 to 5 decimals as Excel does, it becomes 61.67595
52,000 * 61.67595 = $3,207,149.4

Where does the 210.60 difference come from? No rounding has been assigned.
 
Upvote 0
Hi,

Although you have A4 formatted to show Only 2 decimal places, it Does Not mean Excel had Rounded the value, the underlying number is still 61.67595, you Told Excel to Only let you See 61.68.

If you want the accuracy to extend to Only 2 decimal places, you Need to Round the result of A2/A3:


Book1
ABCDE
22467038
340000
461.67595A4 not rounded3207149.40result using A4
561.68A5 rounded3207360.00result using A5
6
7
8
9
1052000
Sheet74
Cell Formulas
RangeFormula
A4=A2/A3
A5=ROUND(A2/A3,2)
D4=A10*A4
D5=A10*A5
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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