Round numbers

C

Chi

Hi,

I am using the formula below to calculate the TotalCorrect. It works fine.
However, answer is not rounded.

=1-([TotalError]/[TotalAudit])

I would like to have the results like the examples below.

Ex: 75.24% will be 75 since # 2 is less than 5
And 28.60% will be 29 since #6 is bigger than 5.

Please help
 
A

Allen Browne

Try:
=Round(1 - ([TotalError]/[TotalAudit]), 2)

Or even better:
=IIf([TotalAudit] = 0, Null, Round(1 - ([TotalError]/[TotalAudit]), 2))
 
C

Chi

Thank you very much! It works perfectly!!

Chi

Allen Browne said:
Try:
=Round(1 - ([TotalError]/[TotalAudit]), 2)

Or even better:
=IIf([TotalAudit] = 0, Null, Round(1 - ([TotalError]/[TotalAudit]), 2))

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Chi said:
I am using the formula below to calculate the TotalCorrect. It works fine.
However, answer is not rounded.

=1-([TotalError]/[TotalAudit])

I would like to have the results like the examples below.

Ex: 75.24% will be 75 since # 2 is less than 5
And 28.60% will be 29 since #6 is bigger than 5.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top