Need to convert Outlook Journal Duration to a number

J

JRO Mtn Group

How do I create a formula that converts a Outlook Journal Duration to a
number that represents hours:For Instance - I want the following to all be
hours without the word "Hours" or "Hour" or "minutes" (I want to use the
number of hours in another formula....
Duration
3.5 hours
1 hour
45 minutes
2 hours
All this is in one column -
I got as far as if(isnumber(search("hour",A2)), but now what? How do I get
the 3.5 to use it in a formula...

Thanks
 
J

JRO Mtn Group

David - thanks - I figured it out very early this am - was on a roll...
=IF(ISNUMBER(SEARCH("h",D2)),SUBSTITUTE(D2,"h",""),IF(ISNUMBER(SEARCH("m",D2)),SUBSTITUTE(D2,"m","")/60,IF(ISNUMBER(SEARCH("d",D2)),SUBSTITUTE(D2,"d","")*24,"wrong")))
I appreciate you help
 
D

David Biddulph

Your formula doesn't cope with inputs in the format which you quoted in your
original message, but I'm glad that you're happy with the answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top