Skip 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.

Extract Specific data from field

Featured Replies

  • Newbies

HI, I've tried to sort this without success, and probably because I'm not clever enough,

I wish to extract the number, which may be a one to three digit number, from a field like

Albert Street - Segment 2 33

The only thing that is guaranteed is that it is the number directly after the word Segment. In the above I only want the 2.

I am sure that there is a simple answer and that I will kick myself later.

Thanks for any help

Matthew

I am sure that there is a simple answer

I am not. Will there always be a space between "Segment" and the number? And will there always be a space following the number?

  • Author
  • Newbies

I am not. Will there always be a space between "Segment" and the number? And will there always be a space following the number?

Yes. The number will always be separate.

Try =

Let ( [

pos = Position ( text ; "Segment " ; 1 ; 1 ) ; 

w = WordCount ( Left ( text ; pos - 1 ) )

] ;

Case ( pos ; MiddleWords ( text ; w + 2 ; 1 ) )

)

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.