Link to home
Start Free TrialLog in
Avatar of BearWebContent
BearWebContentFlag for Bosnia and Herzegovina

asked on

Sharepoint Calculated Field - extract piece of text from another field

I have a field with a value at the before a "-" that varies in length and text after the dash. I would like to get a sub set of the portion before the dash. I've seen comments on how to extract after a certain point but not before and not if the length varies.

Sample:

OLB-20           in original field

OLB                should be in calculated field

OLBad-1539   in original field

OLBad            should be in calculated field
Avatar of BearWebContent
BearWebContent
Flag of Bosnia and Herzegovina image

ASKER

Never mind. I figured it out. "-" being whatever point you want to end at.

=MID([Col1],1,FIND("-",[Col1],1)-1)
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial