View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
[email protected] write2bhatt@gmail.com is offline
external usenet poster
 
Posts: 1
Default Calculating time in Number Formate

Hi,

I have Created a formula for the users who want to calculate time into
number format.

Example
Anirban want to calculate time spent in Xerox Audit between 7:00 AM to
9:26 AM. Now using simple subtraction formula he will get 1:26 but if
he want to see the result in number formate which shows 1.26, he can
the following formula

=(TRUNC((((B1-A1)*(24*60))/60),0))+((((((B1-A1)*(24*60))/60)-
(TRUNC((((B1-A1)*(24*60))/60),0)))*60)/100)