Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Calulating week # & Day #

I wonder if any of you could advice me on which function(s )to use to get
the week number,
& day number of a given date.


eg) if the date is, say 11-Jan-2007.
then the day # is 4 ( Thursday)
week # is 2 ( 2nd week in the year).

Please help
Regards
Bernard



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Calulating week # & Day #

With the date in A1

=WEEKNUM(A1)
=TEXT(A1,"ddddddddd")

Should do the ttrick

Mike

"bj" wrote:

I wonder if any of you could advice me on which function(s )to use to get
the week number,
& day number of a given date.


eg) if the date is, say 11-Jan-2007.
then the day # is 4 ( Thursday)
week # is 2 ( 2nd week in the year).

Please help
Regards
Bernard




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default Calulating week # & Day #

If your data is in cell A1 (adjust for actual), these functions should do
what you need:

=WEEKDAY(A1,2)
=WEEKNUM(A1)

I believe the second one might be part of the AnalysisPack, which you might
be prompted to install (from the disks?)

HTH

"bj" wrote:

I wonder if any of you could advice me on which function(s )to use to get
the week number,
& day number of a given date.


eg) if the date is, say 11-Jan-2007.
then the day # is 4 ( Thursday)
week # is 2 ( 2nd week in the year).

Please help
Regards
Bernard




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
Calulating hours, minutes and seconds Linda Le Geyt Excel Worksheet Functions 5 November 9th 06 01:49 PM
Calulating the number of days an employee works Curtis Excel Worksheet Functions 6 October 30th 06 09:43 AM
reducing Calulating time harpscardiff Excel Discussion (Misc queries) 1 March 14th 06 12:26 PM
Calulating Age Formula YUMBUG Excel Worksheet Functions 3 August 26th 05 01:25 AM
How do I set up a week by week skill training schedule in excel? davidwatts Excel Discussion (Misc queries) 0 June 16th 05 11:32 PM


All times are GMT +1. The time now is 04:57 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"