#1   Report Post  
Posted to microsoft.public.excel.programming
jer jer is offline
external usenet poster
 
Posts: 8
Default Julian Date

Dear all
I hope I addressing the correct group. Is there a way to
program excel to fill an array with the julian date
example.

If activecell.value < " " then ...
actuvecell = Julian Date (today = 216)
End if

thanks
jer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Julian Date

jer,

Try

ActiveCell = Int(Now) - DateSerial(Year(Now), 1, 0)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"jer" wrote in message
...
Dear all
I hope I addressing the correct group. Is there a way to
program excel to fill an array with the julian date
example.

If activecell.value < " " then ...
actuvecell = Julian Date (today = 216)
End if

thanks
jer



  #3   Report Post  
Posted to microsoft.public.excel.programming
jer jer is offline
external usenet poster
 
Posts: 8
Default Julian Date

Thanks Chip, the formula works just fine
jer
-----Original Message-----
jer,

Try

ActiveCell = Int(Now) - DateSerial(Year(Now), 1, 0)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"jer" wrote in message
...
Dear all
I hope I addressing the correct group. Is there a way

to
program excel to fill an array with the julian date
example.

If activecell.value < " " then ...
actuvecell = Julian Date (today = 216)
End if

thanks
jer



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
jer jer is offline
external usenet poster
 
Posts: 8
Default Julian Date

Thanks Chip, the formula works just fine
jer
-----Original Message-----
jer,

Try

ActiveCell = Int(Now) - DateSerial(Year(Now), 1, 0)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"jer" wrote in message
...
Dear all
I hope I addressing the correct group. Is there a way

to
program excel to fill an array with the julian date
example.

If activecell.value < " " then ...
actuvecell = Julian Date (today = 216)
End if

thanks
jer



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Julian Date

On Mon, 4 Aug 2003 12:05:25 -0700, "jer" wrote:

Dear all
I hope I addressing the correct group. Is there a way to
program excel to fill an array with the julian date
example.

If activecell.value < " " then ...
actuvecell = Julian Date (today = 216)
End if

thanks
jer


You seem to be using a definition of Julian Date as being the day number of the
current year.

If that is the case, then:

=TODAY()-DATE(YEAR(TODAY()),1,0)

will give the desired result.


--ron


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Julian Date

On Mon, 4 Aug 2003 12:05:25 -0700, "jer" wrote:

Dear all
I hope I addressing the correct group. Is there a way to
program excel to fill an array with the julian date
example.

If activecell.value < " " then ...
actuvecell = Julian Date (today = 216)
End if

thanks
jer


Sorry, I forgot this was the programming group when I gave you a worksheet
formula. Chip's formula is the same as mine, but in VBA.


--ron
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
Julian date - find next highest date/number jchick0909 Excel Worksheet Functions 1 March 20th 08 11:38 PM
Change satellite julian date format YYYYDDDHHMMSS to excel date ti putley Excel Discussion (Misc queries) 1 January 11th 08 06:12 PM
to convert a julian date back to regular date Lynn Hanna Excel Worksheet Functions 1 July 26th 06 03:14 PM
Convert a julian gregorian date code into a regular date Robert Excel Worksheet Functions 3 June 13th 06 07:03 PM
how to convert julian date to regular calendar date Ron Excel Worksheet Functions 5 May 5th 05 11:05 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"