Date functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Our database represents dates by giving the day number within a year. For
example, day number 1 is January 1, and day number 365 is December 31. Is
there a function to convert day number to mmm-dd?
 
=TEXT(DATE(2005,1,A1),"mmm-dd")

where cell A1 holds the day of the year
 
Hi Kirk

how does this work with leap years????

anyway how about
=TEXT(DATEVALUE("31/12/04")+A1,"mmm-dd")
where your imported number is in A1
note this will format the date to a text rather than a number
if you want a number use
=DATEVALUE("31/12/04")+A1
and then use format / cells - to format the date as you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top