Hi All,
I have a string: "2 hours, 15 minutes" that I need to eventually convert to numbers.
The hard part is that the 2 and the 15 portions can vary in length
ex: "100 hours, 15 minutes" and Im not sure what to do.
My first thought was to split the hours value and minutes values apart into separate values:
ex: result of formula 1: would = 2 hours,
and result of formula 2: would = 15 minutes.
Then since the "hours," portion would always be the same number of characters, I would use another formula to chop off the " hours," portion leaving the 2, then convert the 2 from a string to a number.
Same for 15 minutes.
Any ideas?
Using CR 8.5
HC
I have a string: "2 hours, 15 minutes" that I need to eventually convert to numbers.
The hard part is that the 2 and the 15 portions can vary in length
ex: "100 hours, 15 minutes" and Im not sure what to do.
My first thought was to split the hours value and minutes values apart into separate values:
ex: result of formula 1: would = 2 hours,
and result of formula 2: would = 15 minutes.
Then since the "hours," portion would always be the same number of characters, I would use another formula to chop off the " hours," portion leaving the 2, then convert the 2 from a string to a number.
Same for 15 minutes.
Any ideas?
Using CR 8.5
HC