- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 21, 2023 12:40 PM - edited Apr 21, 2023 12:42 PM
Why is my formula shortened by Airtable?
In my project, I want a point of contact assigned by province using the if formula below:
IF(Province="BC","Ashlee",
IF(Province="AB","Karen"),
IF(Province="SK","Karen"),
IF(Province="MB","Karen"),
IF(Province="ON","Cody "),
IF(Province="QC","Ches"),
IF(Province="NU","Ches"),
IF(Province="YT","Ches"),
IF(Province="NT","Ches"),
IF(Province="NB","Leena"),
IF(Province="NS","Leena"),
IF(Province="NL","Leena"),
IF(Province="PE","Leena")
)
Could anyone tell me why AirTable only saved the following and if there is anything missing to my formula for all the provinces to be included in the formula?
IF(Province="BC","Ashlee Larose",
IF(Province="AB","Karen Ergus"))
Your time and knowledge are greatly appreciated. Sonia
Solved! Go to Solution.
Accepted Solutions
![Jason_Hill Jason_Hill](https://community.airtable.com/legacyfs/online/avatars/3X/e/f/ef401f231298c9b64b4bb6736800a49c2f10239d.png)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 21, 2023 03:17 PM
I think something is amiss with your browser. It should not be cut off. I'll take the time to mention the "SWITCH" function. It's nice to use instead of "IF". It's a bit shorter. Below is a short example.
SWITCH(
{Province},
'BC', 'Ashlee',
'AB', 'Karen',
'SK', 'Karen',
'MB, 'Karen',
'No Province'
)
![Jason_Hill Jason_Hill](https://community.airtable.com/legacyfs/online/avatars/3X/e/f/ef401f231298c9b64b4bb6736800a49c2f10239d.png)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 21, 2023 03:17 PM
I think something is amiss with your browser. It should not be cut off. I'll take the time to mention the "SWITCH" function. It's nice to use instead of "IF". It's a bit shorter. Below is a short example.
SWITCH(
{Province},
'BC', 'Ashlee',
'AB', 'Karen',
'SK', 'Karen',
'MB, 'Karen',
'No Province'
)
![ScottWorld ScottWorld](https://community.airtable.com/legacyfs/online/avatars/3X/7/e/7eff84feb0baf275c7ef4416aa8f1be38dbb1471.jpeg)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 21, 2023 07:29 PM
It cuts off certain types of formulas that are invalid. Everything after the cutoff point was invalid.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 26, 2023 04:52 AM
Thank you Jason_Hill. Not sure about my browser. It's a work computer maintained by an IT company. Regardless, your workaround formula is perfect for what I need and I will practice using SWITCH() for the first time. 🐵 Thanks a bunch!
Sonia
Thank you for your time.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 26, 2023 04:54 AM
Thank you ScottWorld for taking time to reply. I will use a SWITCH () formula instead as suggested by @ScottWorld above. 🐵
Sonia
![](/skins/images/DD0CD7D0ACF200EF4456420D87029A3D/responsive_peak/images/icon_anonymous_message.png)