Excel Examples: Separate Name And ID
About the video
To separate text and numbers we have use formula based on the FIND function, the MIN function, and the LEN function with the RIGHT function, depending on whether you want to extract the text or the number. The formula looks complex, but the mechanics are quite simple. As with most formulas that split or extract text, the key is to locate the position of the thing you are looking for. Once you have the position, you can use other functions to extract what you need. In this case, we are assuming that numbers and text are combined, and that the number appears after the text. From the original text which appears in one cell, you want to split the text and numbers into separate cells.
In the first formula above, we are using the FIND function to locate the starting position of the number. For the find_text, we are using the array constant {0,1,2,3,4,5,6,7,8,9}, this causes the FIND function to perform a separate search for each value in the array constant. Since the array constant contains 10 numbers, the result will be an array with 10 values. Further, we have added “0123456789” with the original text to avoid error form FIND function. In this example, since we are assuming that the number will always appear second in the original text, it works well because MIN forces only the smallest, or first occurrence, of a number to be returned. As long as a number does appear in the original text, that position will be returned.