|  

» Finding the Relative Position of Numbers within a String

Problem:

List1 (column A) consists of strings composed of numbers and characters.
Numbers may appear at the beginning or the end of the string, but not in the middle.
For each of the strings, we want to determine whether the numbers appear at the beginning or the end.

Solution:

Use the ISNUMBER, RIGHT, and LEFT functions as shown in the following formula:
=IF(ISNUMBER(-RIGHT(A2,1)),"End",IF(ISNUMBER(-LEFT(A2,1)),"Beginning"))


Rate This Tip
12 34 5
Rating: 2.39     Views: 13475
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments