View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default splitting string in 2 parts

As this is in programming, I guess that you want vba.

ary = Split("25-32", "-")
string1 = ary(0)
string2 = ary(1)


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ashishprem" wrote
in message ...

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