Live Chat Software by Kayako |
Knowledgebase: Microsoft Excel
Finding the Relative Position of Numbers within a String
Posted by - NA - on 20 March 2006 08:47 AM
|
|
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")) | |
|
Comments (0)