LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
PJH PJH is offline
external usenet poster
 
Posts: 3
Default Calculating Age (in days) with multiple date formats (including ti

Here is my problem...I need to calculate the age (using VBA) of an item,
however when my spreadsheet refreshes (importing data via web query) there
are numerous date formats depending on when a user modified, closed, or
adjusted the particular item. If the item is "acted on" (i.e. opened,
closed, modified, etc.) in the seven days prior to my report then the date
appears as DayofWeek Time (i.e. Wed 15:15). To complicate matters further,
if the item is "acted on" during the day that I run my report then the date
column contains the time of the action on the item (i.e. 7:16). The only
other variable in this problem is "Status"...if the item is "Closed", I
determine the age by calculating the difference between Column B then Column
C, if it is not "Closed", then the age is determined by calculating the
difference between Column B and now().

Examples:
A B C
D E

Item Date Opened Date Closed/Changed Age of Item Status
1 01/01/08 02/01/08 30
Closed
2 08/06/08 Wed 15:15 ?
3 02/01/08 16:11 ?
 
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
Calculating number of days including the start and end date Terri Excel Discussion (Misc queries) 2 March 2nd 09 01:18 PM
Calculating number of days including the start and end date Shane Devenshire[_2_] Excel Discussion (Misc queries) 0 February 26th 09 10:45 PM
How to add 30 days to date in another column, including Sat/Sun? Sherri Excel Worksheet Functions 2 January 26th 08 04:20 AM
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM


All times are GMT +1. The time now is 03:41 AM.

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"