+ Reply to Thread
Results 1 to 10 of 10

Start date on pull down list being dynamic

  1. #1
    Registered User
    Join Date
    04-15-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Start date on pull down list being dynamic

    Hi there,

    I have an issue and not sure how to make it work.

    created a speadsheet and on the sheet you can change the week using the list function in data validation.

    Ex of weeks.

    December-28-13
    January-04-14
    January-11-14
    January-18-14
    January-25-14
    February-01-14
    February-08-14
    February-15-14
    February-22-14
    March-01-14
    March-08-14
    March-15-14
    March-22-14
    March-29-14
    April-05-14

    These are the start date of the weeks.

    What I am looking to do is if the current date (=today()) is say March-20-14, I want the list to show all the weeks but be on March-15-14

    For the life of me I cannot figure out how. Any assistance would be GREATLY appreciated.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Start date on pull down list being dynamic

    That formula will do what you want.

    Please Login or Register  to view this content.
    It will be overwritten any any date you select.

    But you can get a macro to reset the formula whenever the workbook is opened.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Start date on pull down list being dynamic

    sub auto_open()

    range("B5").formulaR1C1 =OFFSET(A1,MATCH(TODAY(),A1:A20,-1)-1,0)

    End SUb

  4. #4
    Registered User
    Join Date
    04-15-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Start date on pull down list being dynamic

    Not working for me. Attached a SS for an example ... Can you have a look and throw in what you think will work?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-15-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Start date on pull down list being dynamic

    When you have moment, can you see my most recent post please?

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Start date on pull down list being dynamic

    Hi

    The following code works for me.

    Please Login or Register  to view this content.
    It is in the attached workbook. To see it select sheet1, right click on the sheet name at the bottom of excel and select view code.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-15-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Start date on pull down list being dynamic

    You'll have to forgive me, I have no clue how to apply this.

  8. #8
    Registered User
    Join Date
    04-15-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Start date on pull down list being dynamic

    I'd like to be able to do it without using this as I'm not familiar with it.

  9. #9
    Registered User
    Join Date
    04-15-2009
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Start date on pull down list being dynamic

    Finally got it to work w/ index and match.

    Thank you.

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Start date on pull down list being dynamic

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] Dynamic named range based on a start date and end date
    By Gary Lockton in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2012, 07:26 PM
  2. How do I pull the current month for use in pivot table start date?
    By clawlan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2010, 05:50 PM
  3. Extract Start & End Date in list, linked to time
    By BartDeHertogh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2010, 03:47 AM
  4. How to make drop-down list of dates start with current date?
    By Jan Buckley in forum Excel General
    Replies: 15
    Last Post: 08-29-2005, 05:05 PM
  5. [SOLVED] expanding a start date and end date to show all the dates in a list
    By musicman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2005, 04:05 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