# If-Formula with inconsitent data error

**URL:** <https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056>\
**Category:** Formulas\
**Created:** [August 30, 2024, 9:41am UTC](https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056 "2024-08-30T09:41:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![OAMmer](https://forum.seatable.com/letter_avatar_proxy/v4/letter/o/6de8d8/32.png) [@OAMmer](https://forum.seatable.com/u/OAMmer)\
**Post date:** [August 30, 2024, 9:41am UTC](https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056/1 "2024-08-30T09:41:37Z")

</div>

I am trying an easy if-formula quite similar to the example form the seatable website:

if({Warenart.Herkunftsland}=“Deutschland”, “EU”,“DE”)

But I always get an error with inconsistent data. Happy to hear where I get it wrong and how to get it work.

---

<div class="post-metadata">

**Author:** ![bha](https://forum.seatable.com/user_avatar/forum.seatable.com/bha/32/4702_2.png) [@bha](https://forum.seatable.com/u/bha)\
**Post date:** [August 30, 2024, 9:47am UTC](https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056/2 "2024-08-30T09:47:40Z")

</div>

Hi @OAMmer and welcome on the SeaTable forum !  
While trying to reproduce your problem, I can’t create a column with a dot inside the name 🤔  
Is your column named `Warenart.Herkunftsland` or maybe `Warenart` is your table’s name and `Herkunftsland` your column name ? Can you give us more information about that (just a screenshot of your table’s columns should be enough for the beginning) ?

Bests,  
Benjamin

---

<div class="post-metadata">

**Author:** ![OAMmer](https://forum.seatable.com/letter_avatar_proxy/v4/letter/o/6de8d8/32.png) [@OAMmer](https://forum.seatable.com/u/OAMmer)\
**Post date:** [August 30, 2024, 9:52am UTC](https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056/3 "2024-08-30T09:52:26Z")

</div>

> [@bha](#):
>
> with a dot inside the nam

This columm is coming from a linked table and this how you can insert it from the menu.

I already managed to get a correct formula with the following using linked columns.

if({Lieferort.Land}={Warenart.Herkunftsland},“Inland”, “EU”)

But not with the “=” Operator and a text value

 ![image](https://forum.seatable.io/uploads/default/original/2X/3/3369e482763f49335044e0dbf3deb86fbc8f5fe3.png)

---

<div class="post-metadata">

**Author:** ![bha](https://forum.seatable.com/user_avatar/forum.seatable.com/bha/32/4702_2.png) [@bha](https://forum.seatable.com/u/bha)\
**Post date:** [August 30, 2024, 10:04am UTC](https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056/4 "2024-08-30T10:04:30Z")

</div>

Ok, thanks for the precision, I didn’t know that this syntax was possible !  
Considering that, `{Warenart.Herkunftsland}` is not considered as a text (if you make a column with this simple formula, you’ll see that the result looks like a linked record).  
To cast `{Warenart.Herkunftsland}` to string, you can simply add `& ""` after, which with force to string type as it concatenates `{Warenart.Herkunftsland}` with an empty string.

So `if({Warenart.Herkunftsland} & ""="Deutschland", "EU","DE")` should be fine (but are you sure it’s not `if({Warenart.Herkunftsland} & ""="Deutschland","DE","EU")` instead ?)

Bests,  
Benjamin

---

<div class="post-metadata">

**Author:** ![OAMmer](https://forum.seatable.com/letter_avatar_proxy/v4/letter/o/6de8d8/32.png) [@OAMmer](https://forum.seatable.com/u/OAMmer)\
**Post date:** [August 30, 2024, 10:11am UTC](https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056/5 "2024-08-30T10:11:25Z")

</div>

The simple formula {Warenart.Herkunftsland} is returing the Herkunftsland correctly from the linked table . That is why I was of the opinion that is considered as text which I can match.

But anyway, that was the solution. Now it is working. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [September 1, 2024, 10:11am UTC](https://forum.seatable.com/t/if-formula-with-inconsitent-data-error/5056/6 "2024-09-01T10:11:31Z")

</div>

Closed on September 1, 2024, 10:11am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
