This is called parsing, with a delimiter of "-".
Assuming the numbers can be bigger or smaller, use code similar to:
txt = "25-32"
delim="-"
loc = instr(txt,delim)
string1 = mid(txt,1,loc-1)
string2 = mid(txt,loc+1)
"ashishprem" wrote:
I have 1 string which contains the value like "25-32". I want to split
it in 2 strings such that the value of
string1="25"
string2="32"
Please help me out,
Regards.
Ashish
--
ashishprem
------------------------------------------------------------------------
ashishprem's Profile: http://www.excelforum.com/member.php...o&userid=31485
View this thread: http://www.excelforum.com/showthread...hreadid=512210