I have a column of numbers in teh format 0.45+_0.23 . +_ is a
character plus or minus .
How can I convert the number before and after +_ into mm
automatically ? Any formula ?
- Vijay
v_udupa@hotmail.com
joeu2004 - 09 Jan 2008 07:11 GMT
> I have a column of numbers in teh format 0.45+_0.23 . +_ is a
> character plus or minus .
> How can I convert the number before and after +_ into mm
> automatically ? Any formula ?
I presume the "numbers with tolerances" are actually in Text format.
Depends on the exact format of the number strings. If they are the 4
characters on the left and right, then:
=value(left(A1,4))
=value(right(A1,4))
If the length of the numeric strings vary, then:
=value(left(A1, find("+",A1)-1))
=value(right(A1, len(A1) - find("+",A1)))
where "+" is the plus-or-minus character that you mention.
Rick Rothstein (MVP - VB) - 09 Jan 2008 07:58 GMT
Your question is not entirely clear to me. Assuming you actually have +_ as your characters between the numbers, then...
Lower Number:
=LEFT(A10,FIND("+",A10)-1)-MID(A10,FIND("_",A10)+1,255)
Higher Number:
=LEFT(A10,FIND("+",A10)-1)+MID(A10,FIND("_",A10)+1,255)
If you are using this symbol ± instead, then use it in place of both the "+" and "_" in the above formulas. If the _ is really a minus sign, then use that instead of the _ in the above formulas.
Rick
>I have a column of numbers in teh format 0.45+_0.23 . +_ is a
> character plus or minus .
[quoted text clipped - 3 lines]
> - Vijay
> v_udupa@hotmail.com
Jays - 10 Jan 2008 00:09 GMT
Yes what you have tried to say is not entirely clear - perhaps an IF
statement?
>I have a column of numbers in teh format 0.45+_0.23 . +_ is a
> character plus or minus .
[quoted text clipped - 3 lines]
> - Vijay
> v_udupa@hotmail.com
Jambar - 10 Jan 2008 12:37 GMT
Hi Rick and Joe,
Both the solutions worked well for my problem.
Thanks very much for teh quick reply
rgds
Jambar
> Yes what you have tried to say is not entirely clear - perhaps an IF
>
[quoted text clipped - 7 lines]
>
> - Show quoted text -