how to correct the decimal number to the nearest even number

S

santosh kutre

What is the formula to correct the decimal number to the nearest even (not
odd number)number
 
S

shg

=INT(A1) + ISODD(A1)
=MROUND(A1, 2)
If A1<0, the first formula returns an odd number and the second return
#NUM!

If your data includes negative numbers, you could use either

=INT(A1) + ISODD(INT(A1))

=MROUND(A1, 2*SIGN(A1))

MROUND requires the Analysis ToolPak add-in
 

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