# Switch fails when result is 0

**URL:** <https://forum.seatable.com/t/switch-fails-when-result-is-0/6488>\
**Category:** Formulas\
**Created:** [April 3, 2025, 7:06pm UTC](https://forum.seatable.com/t/switch-fails-when-result-is-0/6488 "2025-04-03T19:06:03Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![abaer](https://forum.seatable.com/user_avatar/forum.seatable.com/abaer/32/4748_2.png) [@abaer](https://forum.seatable.com/u/abaer)\
**Post date:** [April 9, 2025, 6:21am UTC](https://forum.seatable.com/t/switch-fails-when-result-is-0/6488/11 "2025-04-09T06:21:53Z")

</div>

Thanks for that! To build up knowledge for everyone, I jogged up my memory and link posts from the past that had the same general topic (i.e. consistent data type as a formula result):

> [@How to create a formula if the source column contains as result #N/A](https://forum.seatable.io/t/how-to-create-a-formula-if-the-source-column-contains-as-result-n-a/2708):
>
> I have a formula which contains positive and negative numbers, as well as " #N/A " as result. I want to create a additional formular as an ifs, which says ifs({Column A}\>= 1, “OK”, {Column A}\<= -1, “Not good”, {Column A}= “#N/A”, “Not available”) However “#N/A” is not recognized, how to express this result in a formula?

> [@Why is this formula not working](https://forum.seatable.io/t/why-is-this-formula-not-working/6186/12):
>
> Not wanting to have the last world or be right (because both solutions work), I’ll just add the knowledge I acquired in long, frustrating sessions to prevent others from the same fate in more complex scenarios: Both methods make sure that the column only contains values of one type (String). How I understand it, the format detection takes the data in the first row it encounters. I just made a quick test with a formula that creates number, date, boolean and string values. ifs( {Name}="A",True()…

That’s where I learned the hard way that consistent output data type is a good idea 🙂

---

_[View the full topic](https://forum.seatable.com/t/switch-fails-when-result-is-0/6488)._
