LEFT counts characters from the first position in the text string and returns the requested number. Position 1 is the first character on the left. Spaces, hyphens, and special characters all count as one character each. The result is always a text string — even if the extracted characters look like a number, the result is text. Wrap in VALUE if you need the output to be numeric for calculations. When the number of characters to extract is fixed — always 3 for a category code, always 2 for a country prefix — LEFT is a simple two-argument formula. When the prefix length varies because it ends at a delimiter, combine LEFT with
FIND: =LEFT(A2,FIND("-",A2)-1) extracts everything before the first hyphen. The -1 excludes the delimiter itself.
RIGHT extracts from the end of the string and
MID extracts from any position in the middle — the three functions together handle all fixed-position text extraction needs.