#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T-Bone
 
Posts: n/a
Default Date Calculation

I have data extracted from a database in the following format:
Leads: Date Created Opportunities: Last Modified
1/5/2006 16:19 1/10/2006 16:25

I need to isert a column and calculate the elapsed time between. Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Date Calculation

If they are numeric it is very simple, just subtract the earlier date, with
1/5/2006 in A1 and 1/10/2006 in B1

=B1-A1

format custom as [hh]:mm if you want the total in hours and d hh:mm if you
want days hh:mm

--
Regards,

Peo Sjoblom

Portland, Oregon




"T-Bone" wrote in message
...
I have data extracted from a database in the following format:
Leads: Date Created Opportunities: Last Modified
1/5/2006 16:19 1/10/2006 16:25

I need to isert a column and calculate the elapsed time between. Any
thoughts?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T-Bone
 
Posts: n/a
Default Date Calculation

OK I think we are on the right path...but I just want the number of days...I
reformatted the cells, but the time of day is still in there. .. so b2-f2
doesn't work...shows in example below shows:

1/5/1900 0:06

Could you please show exactly how just to get days? Sorry I am so stupid.

"Peo Sjoblom" wrote:

If they are numeric it is very simple, just subtract the earlier date, with
1/5/2006 in A1 and 1/10/2006 in B1

=B1-A1

format custom as [hh]:mm if you want the total in hours and d hh:mm if you
want days hh:mm

--
Regards,

Peo Sjoblom

Portland, Oregon




"T-Bone" wrote in message
...
I have data extracted from a database in the following format:
Leads: Date Created Opportunities: Last Modified
1/5/2006 16:19 1/10/2006 16:25

I need to isert a column and calculate the elapsed time between. Any
thoughts?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Date Calculation

=INT(B1)-INT(A1)

format as General

--
Regards,

Peo Sjoblom

Portland, Oregon




"T-Bone" wrote in message
...
OK I think we are on the right path...but I just want the number of
days...I
reformatted the cells, but the time of day is still in there. .. so b2-f2
doesn't work...shows in example below shows:

1/5/1900 0:06

Could you please show exactly how just to get days? Sorry I am so stupid.

"Peo Sjoblom" wrote:

If they are numeric it is very simple, just subtract the earlier date,
with
1/5/2006 in A1 and 1/10/2006 in B1

=B1-A1

format custom as [hh]:mm if you want the total in hours and d hh:mm if
you
want days hh:mm

--
Regards,

Peo Sjoblom

Portland, Oregon




"T-Bone" wrote in message
...
I have data extracted from a database in the following format:
Leads: Date Created Opportunities: Last Modified
1/5/2006 16:19 1/10/2006 16:25

I need to isert a column and calculate the elapsed time between. Any
thoughts?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T-Bone
 
Posts: n/a
Default Date Calculation

Thank YOU! That's It!

"Peo Sjoblom" wrote:

=INT(B1)-INT(A1)

format as General

--
Regards,

Peo Sjoblom

Portland, Oregon




"T-Bone" wrote in message
...
OK I think we are on the right path...but I just want the number of
days...I
reformatted the cells, but the time of day is still in there. .. so b2-f2
doesn't work...shows in example below shows:

1/5/1900 0:06

Could you please show exactly how just to get days? Sorry I am so stupid.

"Peo Sjoblom" wrote:

If they are numeric it is very simple, just subtract the earlier date,
with
1/5/2006 in A1 and 1/10/2006 in B1

=B1-A1

format custom as [hh]:mm if you want the total in hours and d hh:mm if
you
want days hh:mm

--
Regards,

Peo Sjoblom

Portland, Oregon




"T-Bone" wrote in message
...
I have data extracted from a database in the following format:
Leads: Date Created Opportunities: Last Modified
1/5/2006 16:19 1/10/2006 16:25

I need to isert a column and calculate the elapsed time between. Any
thoughts?






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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Calculate 1st of month date from existing date. Jim15 Excel Discussion (Misc queries) 1 January 9th 06 10:05 PM
Due Date Calculation? Randy New Users to Excel 11 July 14th 05 07:44 PM
date and time ladimples247 New Users to Excel 2 February 16th 05 08:52 PM


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