Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,670
Default counting periods Excel

Hello,

I have a problem with counting periods in Excel. When I try to count
(A1) 7-5-2007 8:00 and (B1) 10-06-07 8:00 the result is a period of
3:0:00 (dd:hr:min)
(formula: B1-A1) and
34:00:00 (dd:hr:min)
(formula: =INTEGER(B1-A1)&":"&TEKST(B1-A1;"uu:mm" )

Excel doesn't count over a month.

Any solutions for my problem?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default counting periods Excel

Works fine for me, using your formula

=INT(B1-A1)

returns 34 formatted as General

to get the time use

MOD(B1-A1,1)


=INT(B1-A1)&":"&TEXT(MOD(B1-A1,1),"hh:mm")


which would be


TEKST(REST(B1-A1;1);"uu:mm")

returns 34:00:00

if I change the time in A1 to 12:00 it returns

33:20:00


--
Regards,

Peo Sjoblom



"Eric" wrote in message
...
Hello,

I have a problem with counting periods in Excel. When I try to count
(A1) 7-5-2007 8:00 and (B1) 10-06-07 8:00 the result is a period of
3:0:00 (dd:hr:min)
(formula: B1-A1) and
34:00:00 (dd:hr:min)
(formula: =INTEGER(B1-A1)&":"&TEKST(B1-A1;"uu:mm" )

Excel doesn't count over a month.

Any solutions for my problem?

Thanks



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
Excel 2002, MS Query and MSSQL View with periods John T in MD Excel Discussion (Misc queries) 0 March 14th 07 02:06 PM
periods of time Ben New Users to Excel 1 March 5th 06 07:47 PM
Counting consecutive periods self_made1 Excel Worksheet Functions 1 December 21st 05 05:44 PM
13 periods Steved Charts and Charting in Excel 1 August 11th 05 05:22 AM
File-Save is grayed out for periods of time in Excel 2003 Ned Grubb Excel Discussion (Misc queries) 1 June 14th 05 09:47 PM


All times are GMT +1. The time now is 05:40 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"