View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default How do I create a reverse julian date formula?

On Tue, 2 Oct 2007 06:44:03 -0700, GaryM
wrote:

Example - input number 05343
Output from formula 12/9/2005


Here's one way:

If your years will always be in this century:

=DATE(LEFT(TEXT(A1,"\2\000000"),4),1,RIGHT(A1,3))

If it can be this century or last, with "30" being in the last century, then:

=DATE(IF(--LEFT(TEXT(A1,"00000"),2)30,1900,2000)
+LEFT(TEXT(A1,"00000"),2),1,RIGHT(A1,3))


--ron