Hello
I have a list that looks like this in column B:
B-101
B-404
B-602
B-905
B-1003
B-1106 and so on.
I am trying to extract first 3 characters in case where the value has 5 characters and first 4 characters in cases where the value has 6 characters in another column.
For example:
Column B Column C
B-101 >>>>> B-1
B-404 >>>>> B-4
B-602 >>>>> B-6
B-1003 >>>>> B-10
B-1106 >>>>> B-11
I am using following formula:
I am getting "B-", but not the numbers after "-".
Can someone please help? I would appreciate any help.
Thanks
I have a list that looks like this in column B:
B-101
B-404
B-602
B-905
B-1003
B-1106 and so on.
I am trying to extract first 3 characters in case where the value has 5 characters and first 4 characters in cases where the value has 6 characters in another column.
For example:
Column B Column C
B-101 >>>>> B-1
B-404 >>>>> B-4
B-602 >>>>> B-6
B-1003 >>>>> B-10
B-1106 >>>>> B-11
I am using following formula:
Excel Formula:
=LEFT(B3,2*(LEFT((RIGHT(B3,LEN(B3)-SEARCH("-",B3))*1),LEN(RIGHT(B3,LEN(B3)-SEARCH("-",B3))*1)-2)))
I am getting "B-", but not the numbers after "-".
Can someone please help? I would appreciate any help.
Thanks