Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Replace first word?

Featured Replies

How could I replace the first word in a string?

Thanks.

What is the reason you need to do this?

How about a hint to what the data looks like.

I could give you a couple of calculations that would do this, but if we knew what you were trying to accomplish and why, we can better fit the answer.

Lee

  • Author

Well basically I have a price list with codes. I have an excel file with these codes but it has 1,2,3,4,5... before the code in other words code "x" would be "1 x" on the excel sheet. I need a function to replace the "1" before the x when importing.

Thanks.

Try

RightWord (YourField; 1)

  • 2 months later...
  • Newbies

I would use something like this since there may be more than just two words in the string. This would result in "xyz product" for an input of "123 xyz product". Input would obviously be the value you're importing.

Let (

[

Input = "123 xyz product" ;

ReplaceSpaces = Substitute ( Input ; " " ; "¶" ) ;

FirstValue = GetValue ( ReplaceSpaces ; 1 ) ;

Output = Substitute ( Input ; FirstValue ; "" )

] ;

Trim ( Output )

)

And this would result in "nails, 2 inch" for input of "1 nails, 12 inch".

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.