+ Reply to Thread
Results 1 to 9 of 9

Week no return starting to date against year

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Week no return starting to date against year

    Dear Forum Leader,

    Week number extract starting to end date corresponding to the year.(Financial calendar)

    I am apply the following formula but return the date wrongly.

    E2=MAX(DATE(RIGHT(B3,2),1,1),DATE(RIGHT(B3,2),1,1)-WEEKDAY(DATE(RIGHT(B3,2),1,1),2)+(C3-1)*7+1)

    YEAR*****WEEKNO**RESULT FORMULA O END DATE

    ****20/03/2017 **** 17/12/1917
    Apr-17*****51 ****26/03/2017 **** 23/12/1917
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Week no return starting to date against year

    One error:

    RIGHT(b3,2) should be YEAR(B3) as B3 is defined as date.

    But still not sure how your result is calculated.

  3. #3
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Week no return starting to date against year

    JohnTopley: Thank you so much for your reply. changed the formula but return the date is wrongly. Please help me.
    Attached Images Attached Images

  4. #4
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Week no return starting to date against year

    sorry wrong file attached.
    Attached Images Attached Images

  5. #5
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Week no return starting to date against year

    Please help me. How do resolve the query.
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Week no return starting to date against year

    You still have not explained your logic:what is the relationship between April 2017, week no 51 and the date of 20th March. These dates are only two weeks apart. Should the date be in 2018?

    I assume 20th / 26th March are the start and end dates of the "week".
    Last edited by JohnTopley; 05-01-2017 at 07:14 AM.

  7. #7
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Week no return starting to date against year

    Quote Originally Posted by JohnTopley View Post
    You still have not explained your logic:what is the relationship between April 2017, week no 51 and the date of 20th March. These dates are only two weeks apart. Should the date be in 2018?

    I assume 20th / 26th March are the start and end dates of the "week".
    Thank for your response Mr.JohnTopley.

    I have changed the data in column B year instead of month and year.

    Column B&C is a random year and week number for financial calendar. Column D2 and D3 desired result(for financial calendar). My requirements is extract the date range (for financial calendar) from a specific week number and year.

    I have apply the following formula =MAX(DATE(B3,1,1),DATE(B3,1,1)-WEEKDAY(DATE(B3,1,1),2)+(C3-1)*7+1) and =MIN(DATE(B3+1,1,0),DATE(B3,1,1)-

    WEEKDAY(DATE(B3,1,1),2)+C3*7) based on the link https://www.extendoffice.com/documen...r-to-date.html return the

    date range is perfect for calendar year but my requirements the same for financial year.

    if possible my requirement? please suggestion and advice.

    file attached.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Week no return starting to date against year

    Trying setting date to [B3,4,1] assuming financial year starts April

  9. #9
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Week no return starting to date against year

    thanks for your response and help

+ 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. Replies: 5
    Last Post: 04-11-2017, 09:23 AM
  2. [SOLVED] Get the date of saturday in a week from a week number / year
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2015, 06:56 PM
  3. [SOLVED] Show the week nukmber of todays date from a starting date
    By john dalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2014, 05:27 AM
  4. Convert date to week number for fiscal year starting July 25
    By ARayburn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-15-2013, 10:07 AM
  5. Replies: 0
    Last Post: 01-21-2013, 08:46 AM
  6. calculating a date using the day of the week as a starting point?
    By Simon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-12-2006, 09:35 AM
  7. [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

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