Help

Len() and other functions not working on a linked field

2488 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Chris_Guthrie
7 - App Architect
7 - App Architect

Hello. I have tried to run Len() as well as some other functions, such as Left() and Right(), and isn’t working when referencing a linked field.

In my example, field Title has a forumula that measure the length of field Title Long. My formula is LEN({Title Long})

Screen Shot 2018-08-31 at 9.35.54 PM.png

3 Replies 3

This isn’t covered too well in the documentation, but lookup fields referencing a text field are typically returned not as a string but as an array — even if the lookup returns only a single value. (What lookups referencing other field types return seemingly depends on how many values are returned: single-value returns appear to be in the type of the original field, while the rest come through as arrays. However, don’t quote me, as I’ve not tested this assumption exhaustively.)

For a non-text lookup, you can most easily check as what type it returns by selecting the ‘formatting’ tab; if Airtable informs you it can’t apply formatting, it’s probably as an array.

You can cast an array to a string by appending &'' to the field name. To cite your reference, LEN({Title Long}&'') should work as expected.

Awesome. Thank you. That worked!

Penny_Norrie
4 - Data Explorer
4 - Data Explorer

Thank you so much for this tidbit! I have been going in circles with the same type of problem but with SUBSTITUTE! Huge save for me. Thanks again!