+ Reply to Thread
Results 1 to 5 of 5

XL IF formula to calculate Number of weeks based on dates in Column:

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    XL IF formula to calculate Number of weeks based on dates in Column:

    2-Sep-12 September Week1
    8-Sep-12 September Week2
    15-Oct-12 October Week3
    31-Oct-12 October week5

    Hi All, I need your help to create a simple formula, which will help me to ascertain the Number of Week, and Month the given date from a month will fall in. As given above, the data will be stored in 3 columns, 1st one containing dates, secondone containing Month and in 3rd column the Week Number for that particular Month.

    In reality the date column will have n number of such dates and I need some easy way to find out Month and Week.

    Your help will be much appreciated.
    Thanks in advance.
    Sancy.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: XL IF formula to calculate Number of weeks based on dates in Column:

    Here, try this:

    ="week "&1+WEEKNUM(A1,2)-WEEKNUM(EOMONTH(A1,-1)+1,2)

  3. #3
    Registered User
    Join Date
    10-15-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: XL IF formula to calculate Number of weeks based on dates in Column:

    Hi Zbor,

    I hope it's calculating the week # for the entire year. I mean to say, I'm getting week # as Week # as "Week - 38" too. As per my understanding it should calculate teh # of weeks for any particular month for which teh date is given, say for example it can't go beyond Week 5 for any month.

    Please let me know if I'm not clear in expressing my requirement clearly.

    Thanks
    Sancy.

  4. #4
    Registered User
    Join Date
    10-15-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: XL IF formula to calculate Number of weeks based on dates in Column:

    Hi Zbor, Sorry, I apologise. It's working fine. I made some mistake earlier. Sorry for teh inconveniences if any. Could you please help me to find teh Month too in a seperate column?

    Thanks & Regards
    Sancy.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: XL IF formula to calculate Number of weeks based on dates in Column:

    =A1 and format cell as mmmm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1