B bkalimili Registered User. Local time Today, 00:27 Joined Aug 23, 2004 Messages 23 Dec 4, 2006 #1 Solution to parse the strings below and get number of months 1) 10 years 5 months 5 days - Should give 5 2) 6 years 10 months 22 days - Should give 10
Solution to parse the strings below and get number of months 1) 10 years 5 months 5 days - Should give 5 2) 6 years 10 months 22 days - Should give 10
E EMP Registered User. Local time Today, 05:27 Joined May 10, 2003 Messages 574 Dec 5, 2006 #2 Try this:- Val(Mid([TextString], InStr([TextString]," month")-2)) ^
P PeterF Registered User. Local time Today, 06:27 Joined Jun 6, 2006 Messages 295 Dec 5, 2006 #3 Another option would be using the split function like this: result = split([TextString] , " ")(2)