How to return an ERROR using functions

When a function doesn't have the data it needs, or is set up incorrectly, it returns an error icon (the red triangle with an exclamation mark). How do I intentionally return this error using functions?

I used to use IF statements to return an error by leaving the IFFALSE field blank. This worked for my needs until I built one that returned 0. I read that apparently if you leave IFFALSE or IFTRUE blank, it will correspondingly return 0 if those conditions are met.

Posted on Aug 31, 2022 10:55 PM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Aug 31, 2022 11:30 PM

Not sure what you are trying to do, but one simple way of introducing an error is to divide by 0.


SG

2 replies
Sort By: 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to return an ERROR using functions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.