Hi
Easiest is to split your entries into 2 columns. You must have 1 free
columns at right - when not, then insert it. Now select the range with
entries, and then select from menu Data.TexToColumns. Set delimiter to
Other:'-' and press Finish.
Now select range with data in both columns. From menu select Replace, into
Find wath field enter 'MM', and press Replace All button. Done!
The procedure described above works, when all values have same measuring
unit. But when you have entries like 12MM-2CM or 33CM-1.2M, where MM, CM and
M are millimeters, centimeters and meters respectively, then you have to
convert entries using formulas. Here is an example about such a formula for
splitted value (from column A), which converts all values to millimeters,
when they end with "MM" or "CM" or "M", ad returns 0 otherwise:
=IF(RIGHT(A2,2)="MM",1,IF(RIGHT(A2,2)="CM",10,IF(RIGHT(A2)="M",100,0)))*SUBS
TITUTE(SUBSTITUTE(SUBSTITUTE(A2,"MM",""),"CM",""),"M","")
NB! Note, that you have to remove string "M" as last - otherwise you change
all "CM"'s to "C"'s.
--
Arvi Laanemets
(Don't use my reply address - it's spam-trap)
Arch said:
In an excel spreadsheet I have a column with range values like
10MM-24.9MM. What I want to do is split that column into two columns:
Minimum and Maximum. In my example minimum will have a value of 10 and
maximum will have a value of 24.9, just want to have numeric values. How can
I do this ? I am not an excel expert, I will appreciate if someone can tell
me the steps to do this. I am sorry if this is a very simple question for
this group.