#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Unusual Date Format

I am writing an Excel 2002 template. Two columns of dates (date from and date
to) are both imported from an external source. The date format is 'cyymmdd'
so today would be '1100421'. The cells are formatted as text.

I need to calculate the difference between the dates shown as a number of
weeks, rounded down to the nearest whole number.

Any help would be appreciated.



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Unusual Date Format

=INT((DATE(LEFT(A3,3)+1900,MID(A3,4,2),RIGHT(A3,2) )-DATE(LEFT(A2,3)+1900,MID(A2,4,2),RIGHT(A2,2)))/7)
--
David Biddulph


"Grey Old Man" wrote in message
...
I am writing an Excel 2002 template. Two columns of dates (date from and
date
to) are both imported from an external source. The date format is
'cyymmdd'
so today would be '1100421'. The cells are formatted as text.

I need to calculate the difference between the dates shown as a number of
weeks, rounded down to the nearest whole number.

Any help would be appreciated.




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
permanent conversion of 1904 date format to 1900 date format Jos Excel Worksheet Functions 4 November 26th 15 02:48 PM
Display the date in an unusual format Barry Excel Discussion (Misc queries) 0 March 31st 10 03:46 AM
3D chart - unusual ORF!N Charts and Charting in Excel 1 September 23rd 09 06:48 PM
Unusual Request... LewisAire Excel Discussion (Misc queries) 0 July 31st 06 12:08 PM
Unusual data format Salty Excel Worksheet Functions 2 November 3rd 05 12:40 PM


All times are GMT +1. The time now is 08:05 PM.

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"