Round Funtion

otis1978

Board Regular
Joined
Feb 25, 2008
Messages
74
cannot seem to figure why this formula will not work?
<table border="0" cellpadding="0" cellspacing="0" width="90"><tr height="24"><td class="xl66" style="height:18.0pt;width:68pt" height="24" width="90">
</td></tr></table>=round(b16-b12/b16,0)

thank you
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
cannot seem to figure why this formula will not work?
<table border="0" cellpadding="0" cellspacing="0" width="90"><tr height="24"><td class="xl66" style="height:18.0pt;width:68pt" height="24" width="90">
</td></tr></table>=round(b16-b12/b16,0)

thank you
In what way does it not work?

What do you have in B12 and B16?

What result do you expect and why?
 
Upvote 0
As Peter has said, it would be beneficial to know what's in the cells and the desired result, but I'm assuming (which rarely works well for me ;)) that you're missing parenthesis
=round((b16-b12)/b16,0)
 
Upvote 0
sorry, this is the formula I am trying to make work:

=round(b16-b12)/b16,0)

b12 is simply a number I input
b16 contains a formula: =B5*B8*B9*B10

thanks again...
 
Upvote 0
sorry, this is the formula I am trying to make work:

=round(b16-b12)/b16,0)

b12 is simply a number I input
b16 contains a formula: =B5*B8*B9*B10

thanks again...
Well, that formula has two closing ")" and only one opening "(" so maybe you need the formula Craig posted. If that does not fix it please address the questions I asked before ..
In what way does it not work? (does it give the wrong answer, an error value, something else? Give detail)

What do you have in B12 and B16? (examples of the actual values. Give detail)

What result do you expect and why? (??? Give detail)
 
Upvote 0
=round((b16-b12)/b16,0)

As Peter said, you are probably missing a parenthesis off of the start of the function.

HTH! Paul.
 
Upvote 0
The syntax for round is round(numbertoround;decimals) so you are missing the number for decimals. =round(5,6789;2) gives 5,68 =round(5,6789;0) gives 6
 
Upvote 0
The syntax for round is round(numbertoround;decimals) so you are missing the number for decimals. =round(5,6789;2) gives 5,68 =round(5,6789;0) gives 6
Depends on the language version of Excel. The separator between 'numbertoround' and 'decimals' may be a ';' as you have quoted but for the standard English version of Excel it is a ','
so I think the OP actually has the decimals covered by the ,0) at the end of the formula but has a missing parenthesis elsewhere as has been suggested a couple of times.

BTW, Welcome to the MrExcel board!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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