Skip to main content

Problems with TEXT functions on LOOKUP fields

  • Apr 6, 2017 2:01 PM UTC
  • 4 replies
  • 91 views

Help! Text functions don’t seem to work with a lookup field - FIND always returns 0, SUBSTITUTE always returns “#ERROR!” and so on…

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+18

I agree this isn’t useful or expected behavior.

However there is a workaround—append (or prepend) an empty string to your field reference and it will work.

This will produce an error: LEFT({Lookup Field},5)
This will work as expected: LEFT({Lookup Field}&"",5)

This will work with all string/text functions including FIND, SUBSTITUTE, LEFT, RIGHT, etc


  • Author
  • New Participant
  • Apr 6, 2017 6:02 PM UTC

I agree this isn’t useful or expected behavior.

However there is a workaround—append (or prepend) an empty string to your field reference and it will work.

This will produce an error: LEFT({Lookup Field},5)
This will work as expected: LEFT({Lookup Field}&"",5)

This will work with all string/text functions including FIND, SUBSTITUTE, LEFT, RIGHT, etc


That’s a great workaround - thanks so much!


Forum|alt.badge.img+2
  • Participating Frequently
  • Aug 16, 2019 1:12 AM UTC

I agree this isn’t useful or expected behavior.

However there is a workaround—append (or prepend) an empty string to your field reference and it will work.

This will produce an error: LEFT({Lookup Field},5)
This will work as expected: LEFT({Lookup Field}&"",5)

This will work with all string/text functions including FIND, SUBSTITUTE, LEFT, RIGHT, etc


Thank you for this. I was at my wit’s end when I came across this


Forum|alt.badge.img+1
  • Inspiring
  • Feb 2, 2021 6:10 AM UTC

Wow, this is quite bad. :frowning: