+ Reply to Thread
Results 1 to 6 of 6

Choose a Months, and Cells change to those dates Formula

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    RI
    MS-Off Ver
    Excel 2007
    Posts
    10

    Choose a Months, and Cells change to those dates Formula

    I have a workbook that contains 7 sheetsfor the days of the week. Monday, Tuesday etc. On those sheets I have 4 to 5 columns of the days of the month. So Monday's sheet contains All Monday dates 3, 10, 17, 24. I would like toHave a drop down which I can choose a month, and then the dates for those columns on each sheet change to the correct dates. I have the drop down but I am not sure how to link those cells and the drop down to a calendar. Any help will be greatly appreciated. Thank You!!

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Choose a Months, and Cells change to those dates Formula

    For the Monday sheet, assuming B1 for first Monday

    B1: =DATEVALUE("06-"&monthInput&"-2012")-WEEKDAY(DATEVALUE("06-"&monthInput&"-2012"),2)+1
    C1: = IF(MONTH(B1)=MONTH(B1+7),MONTH(B1+7,"")
    copy C1 to D1:F1

    On Tuesday

    B1: =Monday!B1+1
    C1: =IF(Monday!C1<>"",Monday!C1,"")
    copy C1 to D1:F1

    Wed-Fri, ditto

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    RI
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Choose a Months, and Cells change to those dates Formula

    The only thing is tough it goes from Monday to Saturday. And how do I connect the drop down to the first cell with the right date?

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Choose a Months, and Cells change to those dates Formula

    I don't understand the question.

  5. #5
    Registered User
    Join Date
    08-06-2012
    Location
    RI
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Choose a Months, and Cells change to those dates Formula

    I got it. Thank you!

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Choose a Months, and Cells change to those dates Formula

    @ ashhm

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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