Rounding Numbers that Meet Specified Criteria

Problem:

Rounding all the numbers in column A to zero decimal places, except for those that have "5" in the first decimal place.

Solution:

Use the IF, MOD, and ROUND functions in the following formula:
=IF(MOD(A2,1)=0.5,A2,ROUND(A2,0))
Screenshot // Rounding Numbers that Meet Specified Criteria
Rounding Numbers that Meet Specified Criteria

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube