I need to extract a base number from a list. Some of them have hyphens and some have spaces. I need to extract left of the first hyphen and if no hypen, left of the first space and if no hypen or space, the just the content of the cell.
from the item below, i need to show the base 110 then the 1102. I tried
=LEFT($F39,IFERROR(FIND("-",$F39),IFERROR(FIND(" ",$F39),999)-1))
but then the base shows the hyphen .....
110-and I'm not sure what I'm doing wrong. Hopefully someone can help and then I can palm smack my face and say "OMG".
item examples below
110-32 JD 110-34 JD 110-36 JD 1102 D1102 K
1134