Hello
I have a list of alphanumeric values in a column as below:
B-101
B-102
B-103
B-904
B-806
B-1005
B-1103
and so on. Effectively, these represent floor numbers... i.e. 101 means "1" floor, 1103 means "11" Floor etc. I want to automatically get floor number next to the unit numbers in a separate column.
Is there a formula in excel where I can extract first digit from a 3 digit alphanumeric value e.g. B-904 - I want to extract "9" in the adjacent column. Similar first 2 digits from a value with 4 digits e.g. B-1005 - I want to extract "10". In other words, I want to extract the digit/s excluding the last two digits.
I have tried the formula to convert the Alphanumeric value to Number i.e. I can convert B-1005 to 1005 using the formula:
. But unable to differentiate between 1,10 & 11.
I would appreciate any help offered.
I have a list of alphanumeric values in a column as below:
B-101
B-102
B-103
B-904
B-806
B-1005
B-1103
and so on. Effectively, these represent floor numbers... i.e. 101 means "1" floor, 1103 means "11" Floor etc. I want to automatically get floor number next to the unit numbers in a separate column.
Is there a formula in excel where I can extract first digit from a 3 digit alphanumeric value e.g. B-904 - I want to extract "9" in the adjacent column. Similar first 2 digits from a value with 4 digits e.g. B-1005 - I want to extract "10". In other words, I want to extract the digit/s excluding the last two digits.
I have tried the formula to convert the Alphanumeric value to Number i.e. I can convert B-1005 to 1005 using the formula:
VBA Code:
=RIGHT(A2, LEN(A2) - SEARCH("-", A2)) *1
I would appreciate any help offered.