G
Guest
Is it possible to put in a formula for a range of cells (which are formatted to two decimal places), where if the two digits after the decimal point are not equal to 00 or 25 or 50 or 75, it returns an error?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
formatted to two decimal places), where if the two digits after the decimalCatheyM said:Is it possible to put in a formula for a range of cells (which are

to two decimal places), where if the two digits after the decimal point are notCatheyM said:Is it possible to put in a formula for a range of cells (which are formatted
Is it possible to put in a formula for a range of cells (which are
formatted to two decimal places), where if the two digits after the
decimal point are not equal to 00 or 25 or 50 or 75, it returns an
error?

Jonathan Rynd said:if the data starts in A1, put this B1 and fill down:
=MROUND(A1,0.25)=MROUND(A1,0.01)
returns "TRUE" if the two displayed digits after the decimal point are
00, 25, 50, or 75, and returns "FALSE" if the two displayed digits after
the decimal point are anything else.
None of the other answers so far take the number format into account.
You can use this as a conditional format, or you can use it as an input
to an IF:
=IF(MROUND(A1,0.25)=MROUND(A1,0.01),A1,"Error")
You're sure about that??![]()
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.