reichertc
Mechanical
- Mar 21, 2001
- 115
Alright. I have a list of pipe sizes, formatted as text. For example,
3"
6"
1-1/2"
1/2"
26"
I want to convert these to numbers. What I have done is:
1) Determine length of text string =LEN(...)
2) Strip off inch symbol =LEFT(...,LEN-1)
3) Convert to number =VALUE(...)
This is a little bit simplified because I also have some error checking in place.
Problem is that my pipe sizes like 1/2" are interpreted as dates and I end up getting a number like 37988 rather than 0.5. Anybody know how to get around this?
3"
6"
1-1/2"
1/2"
26"
I want to convert these to numbers. What I have done is:
1) Determine length of text string =LEN(...)
2) Strip off inch symbol =LEFT(...,LEN-1)
3) Convert to number =VALUE(...)
This is a little bit simplified because I also have some error checking in place.
Problem is that my pipe sizes like 1/2" are interpreted as dates and I end up getting a number like 37988 rather than 0.5. Anybody know how to get around this?