Jump to content
Sign in to follow this  
Gary1478

Left Text of a specific word

Recommended Posts

Does any have a quick calculation when trying to get all the text left of a specific word in a field? In this case the word is "time".

Thanks.

Gary

Share this post


Link to post
Share on other sites

name: Left Of

parameters: string, matchstring

definition:

Let(

FirstCharOfMatchString = Position ( string; matchstring ; 1 ; 1 );

Left( string; FirstCharOfMatchString - 1 )

)

All you have to do is pass the string you are `searching for` as matchstring and the string you are `searching` as string. As an example:

Left Of ( "This post was just in time to fix the problem" ; " time" )

would return "This post was just in ". A caveat to this approach is that it will match words like timely or multimedia

Edited by Guest

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.