+ Reply to Thread
Results 1 to 5 of 5

"Automated" date function with week number and associated month

  1. #1
    Forum Contributor
    Join Date
    11-04-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2010
    Posts
    114

    "Automated" date function with week number and associated month

    If I have a cell containing a date (e.g. a day or month) I know that I can drag it across or down and Excel automatically fills in the next logical day or month.

    I also know that I can the same with numbers (e.g. week numbers).

    Does Excel have a way to associate a week number with a month?

    I have attached a file which should explain my question.

    Basically, I work with a lot of time-related data (i.e. week numbers and months). I prefer to be able to drag and automatically fill-in the appropriate cells instead of manually entering and changing the date-related data.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: "Automated" date function with week number and associated month

    Try C1 (copied across): =B1 +7

    and in B2, copied across =WEEKNUM(B1)

    you should also read Excel's help info on WEEKNUM, as it isn't entirely straightforward.
    Last edited by Glenn Kennedy; 06-02-2017 at 03:27 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    11-04-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2010
    Posts
    114

    Re: "Automated" date function with week number and associated month

    Thank you very much.
    I should have Googled the WEEKNUM function; didn't know it existed.

    A little confusing with the return_type, and the weeks do not match perfectly in December my paper calendar, but it'll do (Excel is showing 53 weeks in 2017, while my paper calendar has 52).

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: "Automated" date function with week number and associated month

    Refer attach file.
    In "C1" =INT(B1)+1 copy paste right as per your range.
    In "B2" =WEEKNUM(B1) copy paste right (For week number)
    In "B3" =DAY(B1) For day number
    In "B4" =month(B1) For Month number
    In "B5" =year(B1) For Year
    Attached Files Attached Files
    Last edited by avk; 06-02-2017 at 03:57 AM. Reason: attachment


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: "Automated" date function with week number and associated month

    That's why I suggested reading the excel help. there are various definitions of Week 1... your paper calendar and excel may not be using the same definition.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting month number from week based on number of "work days"
    By bergsorensen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-11-2014, 07:21 AM
  2. Replies: 6
    Last Post: 02-16-2014, 07:15 PM
  3. [SOLVED] Conditionally format dates for "This week" AND "This month"?
    By Vermilion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2012, 09:20 AM
  4. Convert "Date" to week & month Month automatically
    By ajxxx in forum Excel General
    Replies: 7
    Last Post: 11-16-2008, 04:20 PM
  5. [SOLVED] Function or formula to convert "text" month to number of month?
    By Steve Vincent in forum Excel General
    Replies: 1
    Last Post: 02-06-2006, 05:35 PM
  6. Replies: 1
    Last Post: 02-04-2006, 12:19 PM

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