+ Reply to Thread
Results 1 to 16 of 16

Return dates based on week selected

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Return dates based on week selected

    Hi I have a week by week calendar that needs to display the week start date and end date based on a week selection.

    please see attached sheet for details.

    Thanks in advance

    JD
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Return dates based on week selected

    No sure if this is what you were expecting, but have a look.

    Cheers,

    Date Selector.xlsx

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Return dates based on week selected

    Kind of, i was looking just to have one drop down box with a week selector and then the dates to fill from that selection, If the column headres need to be changed to accommodate this then i am ok with that.

    Basically select one week and both dates to automaically fill into the relevent cells

    Cheers

    JD

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Return dates based on week selected

    OK second attempt and I think this is what you're looking for:

    Date Selector01.xlsx

    Cheers

    PS. Please mark as SOLVED if you're happy with the result

  5. #5
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Return dates based on week selected

    Is there any way so that the formula would also look at a date selected as a start date if there were multiple rows of dates to choose from. i.e. a start date of29/08/13 with a week number of 2 would return the values for week start 2 and week end 2 whilst looking at the row beginning with 29/08/13 instead of the row 28/08/13.

    Cheers

    JD
    Last edited by john dalton; 09-03-2013 at 10:49 AM. Reason: spelling error

  6. #6
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Return dates based on week selected

    This can be done but we would have to rework the spreadsheet. Unfortunately, it's late Wednesday evening here where I am and I'll be away until Monday.

    I'll try and get back to it then.

    Cheers,

  7. #7
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Return dates based on week selected

    thank you i will post an example sheet of the requirement.

    jd

  8. #8
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Return dates based on week selected

    Hi John,

    I've been thinking about the situation you proposed in post #5 and as mentioned then the whole spreadsheet would have to be totally changed in its layout. Excel can't guess, it can only work on information/data provided. We would also need to go back to my first example and have two or more data validation drop-down lists.

    Give it some thought and get back to me.

    Cheers,

  9. #9
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Return dates based on week selected

    The matches would be the initial start date in say cell A1 and then the week numbers say (A2) 2.1 and (A3) 2.2 to give the week beginnning and ending in correspondence of the start date. The dates would then be matched to the prefix 2.1 and 2.2 using the start date as lookup start value.

    JD

  10. #10
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Return dates based on week selected

    Hi John, can you please upload a sample of your new thoughts

  11. #11
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Return dates based on week selected

    Here you go the details are explained in the Workbook.

    Thnaks in advance

    JDDate Selector.xlsx

  12. #12
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Return dates based on week selected

    So which input criteria do you want to use: a date or a week number? Do you want to know the Week Start/End dates based on a selected Week or based on a date (even though the date may or not be the exact Start/End date). Because the spreadsheet you uploaded shows both: a "Start Date" AND "Week 2 Start", "Week 2 End" but I don't see why both are required because if you simply put in the week number the date appears.

    Have a look at this one: simply by selecting a week # (cell B7) the dates appear in B8, B9.

    Date Selector02.xlsx

  13. #13
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Return dates based on week selected

    I need the user to put in the week 1 start date as the reference to look for the entered weeks. So if the user entered the start date (A1) then then week no (say week 7) then the dates for the week 7 Start and week 7 end would be displayed.

    I would be using multiple rows of dates that would need to matched against from the starting point of the week 1 start date and then display the dates relevent to the chosen week.

    Where you have Select Week # on your sheet that would be select start date and then then enter a week number to look up so it would use 2 sets of criteria to match against the week7 start and then the week 7 end.

    Phew ... Hope that is clear enough LOL.

    Cheers
    JD

  14. #14
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Return dates based on week selected

    Hi john,

    Based on your sheet in post # 11 try this..

    In Cell B8
    =INDEX($A$3:$Z$4,MATCH($B$6,$A$3:$A$4,0),MATCH($A8,$A$2:$Z$2,0))

    In Cell B9
    =INDEX($A$3:$Z$4,MATCH($B$6,$A$3:$A$4,0),MATCH($A9,$A$2:$Z$2,0))

    Does this give you desired results?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  15. #15
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Return dates based on week selected

    Brilliant thats exactly what I need many thanks.....A++++++++++++

  16. #16
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Return dates based on week selected

    Well done - good we finally got there, and thanks ACE

+ 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] Populate monthly dates into workbook based upon day of week
    By Barney97 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-23-2013, 05:02 PM
  2. [SOLVED] Calculate YTD based on week selected
    By Aland2929 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2012, 08:51 AM
  3. Return Friday's Date - Of the Week Prior to selected date
    By JonesZoid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2012, 09:19 AM
  4. Display Week Dates based on a given Date
    By LordMarcus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2008, 01:38 AM
  5. Determine future dates based on selected days of the week
    By hnowack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2008, 09:51 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