#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Time

Hello
Someone please help me to calculate different between times in different
dates.

Like
A column B column
1.jan 09 11:15
3.jan 09 15:45

I need difference between these two times in Hour and minutes

Thanks
Pmss
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Time

=(A2+B2)-(A1+B1) and custom format result cell with format code [h]:mm

Regards,
Stefi

€˛pmss€¯ ezt Ć*rta:

Hello
Someone please help me to calculate different between times in different
dates.

Like
A column B column
1.jan 09 11:15
3.jan 09 15:45

I need difference between these two times in Hour and minutes

Thanks
Pmss

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Time

Hi

Thanks but it did not work. It gives 3 hours but it must be 52:30.

Regards
Pmss

"Stefi" wrote:

=(A2+B2)-(A1+B1) and custom format result cell with format code [h]:mm

Regards,
Stefi

€˛pmss€¯ ezt Ć*rta:

Hello
Someone please help me to calculate different between times in different
dates.

Like
A column B column
1.jan 09 11:15
3.jan 09 15:45

I need difference between these two times in Hour and minutes

Thanks
Pmss

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Time

Check again, for me it gives 52:30!
Stefi


€˛pmss€¯ ezt Ć*rta:

Hi

Thanks but it did not work. It gives 3 hours but it must be 52:30.

Regards
Pmss

"Stefi" wrote:

=(A2+B2)-(A1+B1) and custom format result cell with format code [h]:mm

Regards,
Stefi

€˛pmss€¯ ezt Ć*rta:

Hello
Someone please help me to calculate different between times in different
dates.

Like
A column B column
1.jan 09 11:15
3.jan 09 15:45

I need difference between these two times in Hour and minutes

Thanks
Pmss

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Time

thanks
but still problem.
i could not set format code [h]:mm it gives error messege i can set only
[t]:mm but gives 75:00

Pmss

"Stefi" wrote:

Check again, for me it gives 52:30!
Stefi


€˛pmss€¯ ezt Ć*rta:

Hi

Thanks but it did not work. It gives 3 hours but it must be 52:30.

Regards
Pmss

"Stefi" wrote:

=(A2+B2)-(A1+B1) and custom format result cell with format code [h]:mm

Regards,
Stefi

€˛pmss€¯ ezt Ć*rta:

Hello
Someone please help me to calculate different between times in different
dates.

Like
A column B column
1.jan 09 11:15
3.jan 09 15:45

I need difference between these two times in Hour and minutes

Thanks
Pmss



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Time

What language version do you use? What is hour and minute in your language?
Replace h by format code for hour in your language and m by format code for
minute in your language!
Stefi


€˛pmss€¯ ezt Ć*rta:

thanks
but still problem.
i could not set format code [h]:mm it gives error messege i can set only
[t]:mm but gives 75:00

Pmss

"Stefi" wrote:

Check again, for me it gives 52:30!
Stefi


€˛pmss€¯ ezt Ć*rta:

Hi

Thanks but it did not work. It gives 3 hours but it must be 52:30.

Regards
Pmss

"Stefi" wrote:

=(A2+B2)-(A1+B1) and custom format result cell with format code [h]:mm

Regards,
Stefi

€˛pmss€¯ ezt Ć*rta:

Hello
Someone please help me to calculate different between times in different
dates.

Like
A column B column
1.jan 09 11:15
3.jan 09 15:45

I need difference between these two times in Hour and minutes

Thanks
Pmss

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default Time

=CONCATENATE((DAY(A2-A1)*24)+HOUR(B2-B1),":",MINUTE(B2-B1))
Formatted as General or Number with zero decimals.
There must be an easier way but this works.
Lou


"Stefi" wrote:

Check again, for me it gives 52:30!
Stefi


€˛pmss€¯ ezt Ć*rta:

Hi

Thanks but it did not work. It gives 3 hours but it must be 52:30.

Regards
Pmss

"Stefi" wrote:

=(A2+B2)-(A1+B1) and custom format result cell with format code [h]:mm

Regards,
Stefi

€˛pmss€¯ ezt Ć*rta:

Hello
Someone please help me to calculate different between times in different
dates.

Like
A column B column
1.jan 09 11:15
3.jan 09 15:45

I need difference between these two times in Hour and minutes

Thanks
Pmss

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time calculations for Scheduled Time vs. Actual Time Worked The Caterer Excel Discussion (Misc queries) 1 November 29th 09 08:08 AM
straight time, time and a half, and double time Jeremy Excel Discussion (Misc queries) 3 September 23rd 08 09:03 PM
Calculate Ending time using Start Time and Elapsed Time Chief 711 Excel Worksheet Functions 5 May 13th 08 04:34 PM
Comparing 2 files on date/time stamp, and based time difference do a subroutine [email protected] Excel Programming 1 September 28th 07 03:53 AM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM


All times are GMT +1. The time now is 12:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"