In Google Sheets (as with Excel, etc) if a user enters bad input into a formula, an error code will be printed in the offending cell and a small pop-up provides more detail
This is a reported problem.
Visit Issue 4422, star it to vote and for updates.