Closed Thread
Results 1 to 15 of 15

how to find out the months when we have week numbers particular year??

  1. #1
    Registered User
    Join Date
    08-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    51

    how to find out the months when we have week numbers particular year??

    uttam.xlsxHi Guys,

    please help me out in this

    i need the months name when we have week numbers

    Example

    week1,2,3,4...... in a callender year it will come in jan month

    like this

    5,6,7,8 weeks in which month will come???

    is there any formula to find ln excel???

    when we have week numbers we need to get month names
    Last edited by uttam.mothe; 11-15-2013 at 07:51 AM. Reason: Please find attache file

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how to find out the months when we have week numbers particular year??

    Perhaps

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to find out the months when we have week numbers particular year??

    when does week 1 start?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: how to find out the months when we have week numbers particular year??

    or use this =TEXT(MONTH(DATE(A5,1,A5*7)),"mmmm")

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to find out the months when we have week numbers particular year??

    we still don't know when week 1 starts.. there are several ways of choosing week 1 week 5 in excel 2007 for 2012 can be either

    29/01/2012 to 04/02/2012
    or
    23/01/2012 to 29/01/2012
    also there are other systems to consider
    iso week 5 is
    30/01/2012 to 05/02/20122 so what month would you say any or all of those week 5 fall in?

  6. #6
    Registered User
    Join Date
    08-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: how to find out the months when we have week numbers particular year??

    hey can u give me an example how to excute the formula

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how to find out the months when we have week numbers particular year??

    In A1 type a number. Let's say 10

    In another cell-let's say c1, put the suggested formula.

    Also see posts#3 & 5

  8. #8
    Registered User
    Join Date
    08-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: how to find out the months when we have week numbers particular year??

    i have attached a file please look into that...tell me the ans..

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how to find out the months when we have week numbers particular year??

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: how to find out the months when we have week numbers particular year??

    there may be 2 different month names, in a week number. usually occurs at the end of the month and early next month. so there is 2 formula for this (all in array formula)

    for first week
    =TEXT(MATCH(--RIGHT($B2,2),WEEKNUM(EDATE(1,12*(LEFT($A$1,4)-1900))-1+ROW(1:365)),0),"mmmm")
    copy down

    for end week
    =TEXT(MATCH(--RIGHT($B2,2),WEEKNUM(EDATE(1,12*(LEFT($A$1,4)-1900))-1+ROW(1:365))),"mmmm")
    copy down

  11. #11
    Registered User
    Join Date
    08-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: how to find out the months when we have week numbers particular year??

    hello need it in English language

  12. #12
    Registered User
    Join Date
    08-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: how to find out the months when we have week numbers particular year??

    thanks alot its working

  13. #13
    Registered User
    Join Date
    08-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: how to find out the months when we have week numbers particular year??

    hey its working no need it english i have changed to mmmm so its showing in english thank you

  14. #14
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,758

    Re: how to find out the months when we have week numbers particular year??

    You haven't clarified how your week numbers are defined as Martin asked so I'll assume you are using week numbers as defined by WEEKNUM function in excel. Using that method week 1 always starts on 1st January and then week 2 starts on the following Sunday.

    Ghozi's method doesn't work consistently

    Quote Originally Posted by Ghozi Alkatiri View Post
    =TEXT(MATCH(--RIGHT($B2,2),WEEKNUM(EDATE(1,12*(LEFT($A$1,4)-1900))-1+ROW(1:365)),0),"mmmm")
    If you are going to copy that down the column then you need to change ROW(1:365) to ROW($1:$365) otherwise it will change each row as you copy down (and distort the results), although it's better to use ROW(INDIRECT("1:365")) in my view because that's more robust against row deletion/insertion.

    ....but even if you fix that the formula doesn't work - week 23 in 2014 starts on 1st June but the above formula gives you May for the start date. The reason for that is that the MATCH function gives you 152 for that week, which results in this

    =TEXT(152,"mmmm")

    Now 152 is day 152 in 1900........but excel treats 1900 as a leap year so day 152 is 31st May, whereas in 2014 - which isn't a leap year - day 152 is 1st June......so the formula gets the wrong result.

    From that you can see that the formula will give you results 1 day early from March onwards in all non leap years and will therefore give you incorrect results in all cases where the week starts on 1st month in those months.

    Better to use an adaptation of the formula Fotis1991 suggests, i.e. for start month of the week

    =TEXT(DATE(LEFT(A$1,4),1,MAX(1,RIGHT(B2,2)*7-5-WEEKDAY(DATE(LEFT(A$1,4),1,1)))),"mmmm")

    and for end month

    =TEXT(DATE(LEFT(A$1,4),1,MIN(365,RIGHT(B2,2)*7+1-WEEKDAY(DATE(LEFT(A$1,4),1,1)))),"mmmm")

    neither of which requires CTRL+SHIFT+ENTER

    As per WEEKNUM no weeks cross over two years so week 1 always starts in January and weeks 53 and 54 (if it exists) end in December. I assume you won't list any weeks which don't exist in the year in question (again as per WEEKNUM definition)
    Last edited by daddylonglegs; 11-16-2013 at 08:58 PM.
    Audere est facere

  15. #15
    Registered User
    Join Date
    12-15-2014
    Location
    Brighton, England
    MS-Off Ver
    MS Excel X for mac.1985-2001
    Posts
    12

    Re: how to find out the months when we have week numbers particular year??

    Hi
    I know this is an old post but
    I am trying to make sense of this as i need something similar

    at the moment I have a week number in a cell

    week1 being the first week of January (either containing 1st january or first week full week in January, i dont really mind, whichever one is easier)


    I would like to turn it into a month ( but i am aware this will be a very rough guideline )
    so I would rather turn that week number into a date(1st monday of that week)

    so lets say
    28= 2815(wwyy)= July 6, 2015

    so i have in one cell: week number
    and next cell: corresponding date

    I am aware i would need a year somewhere
    it could be in one place on my document to be referred and could be changed easily from one year to next
    or have it within a formula ( again whichever is easiest)

    Let me know if this is worth a new thread
    (please forgive me, I am very very new to the world of excel)

    thanks
    gwennita

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10-04-2013, 10:04 AM
  2. Need help with formula for find time (in months) for any given financial year
    By chandni_sharma in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-14-2013, 11:52 AM
  3. Replies: 3
    Last Post: 03-12-2009, 09:54 AM
  4. [SOLVED] Calculating a Date Based on Year, Week Number and Day of the Week
    By amy in forum Tips and Tutorials
    Replies: 1
    Last Post: 08-23-2005, 11:42 AM
  5. Replies: 1
    Last Post: 02-18-2005, 10:06 AM

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