Link to home
Start Free TrialLog in
Avatar of kelsanit
kelsanit

asked on

Crystal - Left value until specific character

Crystal formula LEFT - I am trying to return the value LEFT until it find "EA".  I have the below formula but not working.  Using example below, I want to return KEL9400

KEL9400EA

Left ({FLCMaster.ProductID}, instr({FLCMaster.ProductID},"ea")-1)
ASKER CERTIFIED SOLUTION
Avatar of Ido Millet
Ido Millet
Flag of United States of America image

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
Avatar of kelsanit
kelsanit

ASKER

this is working when "ea" but some are "EA" and this formula is not picking those up. Is there a way to include both options in this formula?
Use Replace() to replace "EA" with "ea" and apply the same logic as above.