Julian Dates / Calendars

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

Guest

I would like to set up some sort of formula or macro so when I enter a julian date of 001-366 it automatically changes it to a regular calendar year format - Say I enter "066" - the cell will actually show as 3/6/04 - Anyone familiar with this??
 
I would like to set up some sort of formula or macro so when I enter a julian date of 001-366 it automatically changes it to a regular calendar year format - Say I enter "066" - the cell will actually show as 3/6/04 - Anyone familiar with this??

In order to change what the entry cell shows, you will need to use an event
driven macro.

However, you could use one cell for entry, and another to show the result. The
formula would be: =DATE(2004,1,A1)

And you could also use Data/Validation to ensure that only integers from 1 to
366 can be entered.


--ron
 
HI,

Will this work? you enter 66 in A1.

=A1+DATE(YEAR(NOW()),1,1)-1

jeff
-----Original Message-----
I would like to set up some sort of formula or macro so
when I enter a julian date of 001-366 it automatically
changes it to a regular calendar year format - Say I
enter "066" - the cell will actually show as 3/6/04 -
Anyone familiar with this??
 
In order to change what the entry cell shows, you will need to use an event
driven macro.

However, you could use one cell for entry, and another to show the result. The
formula would be: =DATE(2004,1,A1)

And you could also use Data/Validation to ensure that only integers from 1 to
366 can be entered.


--ron


If you always wanted the year to be the current year, you could use the
formula:

=DATE(YEAR(TODAY()),1,A1)


--ron
 

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