Jump to content

Calculating a column based on a character within a string


Christine Gopon

Recommended Posts

I'm trying to figure out if this is possible:

I have a string dataset that consists of well names, for example:

7/16-2

35/1-1

6401/12-11 S

I would like to calcuate a new column that returns the first part of the string, before the / character. So in this example the return would be

7

35

6401

I don't believe the "left" function will work in this instance, so I am wondering if there is another option to do this Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...