+ Reply to Thread
Results 1 to 8 of 8

Create a Drop down list with dates based on adjacent Cell

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    102

    Create a Drop down list with dates based on adjacent Cell

    Hi,
    I'm looking for a macro that will take the date in H1 and create a drop list that adds two days before and two days after the the date in H1. The drop list will be in F1 and G1. And finally the macro should find the last empty row and stop. So if there are dates in H1:H50, it will add a drop list in F1:G50. Is this possible?

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Create a Drop down list with dates based on adjacent Cell

    try the macro
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Create a Drop down list with dates based on adjacent Cell

    Hi rcm,
    I forgot to mention I'm stuck on Excel 03 right now. In your spread sheet you have extra columns to the right of H with dates already entered. Is it possible to not have a lookup table for this? Can the macro take the date in H1 and do the math to figure out which dates to put in the drop list?

  4. #4
    Forum Contributor
    Join Date
    12-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Create a Drop down list with dates based on adjacent Cell

    Your macro works as it is. But the lookup table doesn't fit in this project I'm working on.

  5. #5
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Create a Drop down list with dates based on adjacent Cell

    I'll work on it

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Create a Drop down list with dates based on adjacent Cell

    Another method. If the cells in F and G are merged, you only need to add the lists to the cells in column F

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Create a Drop down list with dates based on adjacent Cell

    Thank you, it's perferct. And thanks rcm for your input too. It's greatly appreciated.

  8. #8
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Create a Drop down list with dates based on adjacent Cell

    You are welcome. and thanks Alphafrog for the enlightment

+ 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