Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Date calulation

I'm trying to find a formula for a date count to give me a number of days it
took someone to complete a task. for exsample: =b1-b2 and cell b3 will tell
me how many days it took someone to complete the task.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Date calulation

do you mean in VBA

dim dtStart as Date, dtEnd as Date

dtStart = Range("B1").Value
dtEnd = Range("B2").Value

msgbox "Days: " & clng(dtEnd-dtStart)

--
Regards,
Tom Ogilvy


"Kenny Dee" wrote:

I'm trying to find a formula for a date count to give me a number of days it
took someone to complete a task. for exsample: =b1-b2 and cell b3 will tell
me how many days it took someone to complete the task.

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

yes

"Tom Ogilvy" wrote:

do you mean in VBA

dim dtStart as Date, dtEnd as Date

dtStart = Range("B1").Value
dtEnd = Range("B2").Value

msgbox "Days: " & clng(dtEnd-dtStart)

--
Regards,
Tom Ogilvy


"Kenny Dee" wrote:

I'm trying to find a formula for a date count to give me a number of days it
took someone to complete a task. for exsample: =b1-b2 and cell b3 will tell
me how many days it took someone to complete the task.

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
YTD average cust calulation zy1972 Excel Worksheet Functions 3 July 4th 08 06:41 PM
Another Time Calulation Randy Excel Discussion (Misc queries) 6 May 7th 08 10:22 PM
CALULATION OF DURATION 3R Excel Discussion (Misc queries) 2 April 23rd 08 11:44 AM
Another Time Calulation Question - Sorry. Dugster New Users to Excel 7 November 27th 07 11:27 PM
Getpivot calulation KD Excel Worksheet Functions 1 May 25th 07 10:39 PM


All times are GMT +1. The time now is 06:15 AM.

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

About Us

"It's about Microsoft Excel"