View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Maglez Maglez is offline
external usenet poster
 
Posts: 3
Default Time convertion based on condition

Hello.

How can I inspect cells which contain data like...
2 weeks
1 day
3.2 hours

and convert them all to hours as...
336 hours
24 hours
3.2 hours

I have been playing with the conditional IF and the text command SEARCH...

=IF(SEARCH("days",G4),1,0)

....but I am able only to perform 1 condition, I don't know if there is a
better approach to do this.