I am trying to separate a string from it's three initial characters.
Example:
I have figured out, with help, how to separate the three characters, using the function: =IF(COUNTIF($J$2:$J$100;LEFT(A2;3)&"*")>0;LEFT(A2;3);"Missing").
I am now struggling with separating the other part of the string. Sometimes the string occurs with a dash after the first three character, sometimes without it, and I am confused as to how to write a function that would understand that.
Example:
100345-123-2455 | 100 | 345-123-2455 |
345-123-544444 | 345 | 123-544444 |
I have figured out, with help, how to separate the three characters, using the function: =IF(COUNTIF($J$2:$J$100;LEFT(A2;3)&"*")>0;LEFT(A2;3);"Missing").
I am now struggling with separating the other part of the string. Sometimes the string occurs with a dash after the first three character, sometimes without it, and I am confused as to how to write a function that would understand that.