T
Trevor
Hi all
Firstly apolgies if my original post under a similar heading came through
- I could not find it on goofle two days after I posted so I presume it
has gone AWOL
I have a column which contains values exported by some thirdparty software
sample data below
5m 38s
21h 21m 06s
2m 58s
33m 26s
33m 30s
2m 16s
27m 39s
37s
11m 10s
11m 21s
This a a time duration which I need to convert to the number of seconds
I have come up with this clunker of a formula which works - but I feel
there must be a better way
IF(ISERROR(FIND("h",E3)),0,LEFT(E3,FIND("h",E3)-1)*3600)
+IF(ISERROR(FIND("m",E3)),0,SUBSTITUTE(RIGHT(LEFT(E3,FIND("m",E3)),3),"m",""))
*60+VALUE(LEFT(RIGHT(E3,3),2))+24
I have added line breaks so it posts properly!
I just know there must be a simpler neater way of doing this.
Thanks
Trev
Firstly apolgies if my original post under a similar heading came through
- I could not find it on goofle two days after I posted so I presume it
has gone AWOL
I have a column which contains values exported by some thirdparty software
sample data below
5m 38s
21h 21m 06s
2m 58s
33m 26s
33m 30s
2m 16s
27m 39s
37s
11m 10s
11m 21s
This a a time duration which I need to convert to the number of seconds
I have come up with this clunker of a formula which works - but I feel
there must be a better way
IF(ISERROR(FIND("h",E3)),0,LEFT(E3,FIND("h",E3)-1)*3600)
+IF(ISERROR(FIND("m",E3)),0,SUBSTITUTE(RIGHT(LEFT(E3,FIND("m",E3)),3),"m",""))
*60+VALUE(LEFT(RIGHT(E3,3),2))+24
I have added line breaks so it posts properly!
I just know there must be a simpler neater way of doing this.
Thanks
Trev