+ Reply to Thread
Results 1 to 9 of 9

INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

  1. #1
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    Hi excel Experts,
    We have a excel file, in which we have to enter following information.

    Month (Column C)
    Weeks in the month (Column C)
    Start date of specific week (Column D)
    End date of specific week (Column E)

    All we have to do manually, is this possible that we will enter only month in column (highlighted in yellow colour) and basis the month remaining/following columns will be auto-filled.
    Weeks in the month (Column C)
    Start date of specific week (Column D)
    End date of specific week (Column E)

    Please help us to complete this task.
    Thanks in advance.

    Ravindrak

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    Try this in D4:

    =WORKDAY.INTL(D3+1,-1,"0111111")

    in D5:

    =D4+7

    in E4:

    =D4+6

    in C4:

    =WEEKNUM(D4)

  3. #3
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    For a row (C4: E4) it is working as expected

    How will fill remaining information in range i.e. C5:E8
    Kindly advise

    Thanks in adavance.
    RavindraK

  4. #4
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    Please revert
    Thanks in adavance.
    RavindraK

  5. #5
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    Hi excel Experts,
    Please revert
    Thanks in adavance.
    RavindraK

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    See attached:

  7. #7
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    Thanks a lot for your response,
    however, in case of, Dec'2018 there are 6 weeks

    Start date End date
    Month Dec-18 01-Dec-18 31-Dec-18
    Week Numbers 48 26-Nov-18 02-Dec-18
    49 03-Dec-18 09-Dec-18
    50 10-Dec-18 16-Dec-18
    51 17-Dec-18 23-Dec-18
    52 24-Dec-18 30-Dec-18
    53 31-Dec-18 06-Jan-19

    And if we added one more line i.e. for week 53, it is OK for Dec'2018, but it is NOT OK for other months with 5 weeks
    for example. in Aug'18, there 5 weeks but as we added one more line belwo 5 weeks, week 36 showing wrongly, which is of Sep'2018 not in Aug'2018

    Start date End date
    Month Aug-18 01-Aug-18 31-Aug-18
    Week Numbers 31 30-Jul-18 05-Aug-18
    32 06-Aug-18 12-Aug-18
    33 13-Aug-18 19-Aug-18
    34 20-Aug-18 26-Aug-18
    35 27-Aug-18 02-Sep-18
    36 03-Sep-18 09-Sep-18

    Weeks information is to be appeared for only weeks in a specific month; It should appeared 5 weeks (31 to 35) in Aug'18 weeks whereas in Dec'18 it should appeared 6 weeks (48 to 53)


    Thanks in advance
    Kindly advise.
    RavindraK

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    in D9:

    =IF(MONTH(D8)<>MONTH(D8+7),"",D8+7)

    in C9:

    =IF(D9="","",WEEKNUM(D9))

    in E9:

    =IF(D9="","",D9+6)

  9. #9
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: INPUT month and OUTPUT > Weeks in the month, Start date of Wk & Start date of Wk

    Great, it is done as expected.
    Thanks for your works !!
    Ravindrak

+ 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. [SOLVED] Generate Dates by Month along columns based on Start Date and End Date
    By Stndsh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2015, 05:32 AM
  2. Does a task start or finish date fall within 3 month range of a specific date
    By jamesmcgallan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-19-2015, 07:46 AM
  3. [SOLVED] Date function- 1st day of month for 2nd full month from start date
    By vidiotdave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2014, 05:33 AM
  4. List of Weeks from a start date and an input number
    By SRBetteridge in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-22-2014, 03:39 AM
  5. Replies: 2
    Last Post: 03-22-2013, 02:20 PM
  6. Replies: 6
    Last Post: 03-03-2013, 01:41 AM
  7. Take user input start date and end date. Create a column for each month between these
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2010, 11:46 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