A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Unusual Date Format



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 08:37 AM posted to microsoft.public.excel.misc
Grey Old Man[_2_]
external usenet poster
 
Posts: 28
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  
Old April 21st, 2010, 08:52 AM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
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.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:14 PM.


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