codewala

code it

Excel – get week number from date

Task
When we create a time plan – sometimes the client wants to know in which week number the different phases of the project will start or end.

Problem
While creating the time plan had to refer the calendar for the week number.

Solution
Use the in-build excel function TRUNC.

 Syntax

=TRUNC(((StartDate-DATE(YEAR(StartDate),1,0))+6)/7)

where StartDate is the date whose week number is to be returned.

Advertisements

September 6, 2012 - Posted by | Excel

1 Comment »

  1. Found a inbuilt function in excel which does this.
    =WEEKNUM(StartDate)

    Comment by Siddharth Lodha | December 11, 2012 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: