Results 1 to 9 of 9

Thread: Data Validation For Selecting Date And Week Number

  1. #1
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12

    Data Validation For Selecting Date And Week Number

    is it possible to use a dropdown list with data validation. I want to use a dropdown list for the date and the week number works off the date
    I added manually to show desired result......can dates also be entered using VBA
    Thanks
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    May 2011
    Posts
    6
    Rep Power
    0
    see attched file sheet 1. see entries H1 I1 J1 K1
    now see formula in I2 which is copied down and along columns for 7 rows.
    now use dependent valiation based on these data.
    Attached Files Attached Files
    Last edited by venkat1926; 06-15-2013 at 11:54 AM.

  3. #3
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Paul, Venkat has given you a solution the gives the 7 days of the Nth week, based on year. Does that solve your need? From what I understood, you just want a validation list from which you can select any day, and the week number of that day will display in the adjacent column. Is that correct?
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #4
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    Hi Excel Fox

    I think the best solution would be for me to enter a date into cell C15 and then through VBA select a button and it inserts the dates through to 21/12/2013 using the pattern of dates in the file attached.The week numbers would also insert with VBA according to the date....I would also have a second button which deletes the dates but only after a password is entered........I would then change the code when this spreadsheet is used for 2014 onwards

    Maybe you could also achieve this with a dropdown list (DV) which I would prefer but I do not know if achievable

    Thanks Venkat

    Thank you

    Paul
    Attached Files Attached Files
    Last edited by paul_pearson; 06-15-2013 at 02:30 PM.

  5. #5
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    I am assuming you mean 31st Dec 2013, and not 21st. And what do you mean by 'pattern of dates'?
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  6. #6
    Junior Member
    Join Date
    May 2011
    Posts
    6
    Rep Power
    0
    still it is not clear what you want. if you want a vlidation list for each week number
    see attached workbook(prev book is modified).
    \
    at first try this
    in E1 chooe a weeknumber from validation list arrow. E1 will be filled
    after fillig E1 click the validation arrow what do you get??????

    do same experimet by choosing another weeknumber in E1 and see validation list for F1.

    now how to get at it see the text box.

    may be little complicated but you can do it. experient in ano ther file

    why do you need a password.
    Attached Files Attached Files

  7. #7
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    Hi Excel Fox

    Yes 31st Dec 2013...the dates are for Monday to Friday (no weekends)...There are 3 empty cells between the last date of the week to the first date of the next week

    Hi Venkat
    Thanks...I am about to look at your file now..thanks

    Paul

  8. #8
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    13
    Except for the starting cell, this appears to be the identical question this OP posted here...

    inserting date

    And there are solutions there for part of his question over there... including from me. I'm guessing the OP abandoned the thread over there in order to pursue it here (if so... that was not a very nice thing to do).

  9. #9
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    Hi

    No that thread is not abandoned as there is more replies from me....That one is code and this one is preferably Data Validation...No harm meant and I see both the same threads here and then ask on other forums...is this an issue...it is all about learning....code, formula and DV has been learnt

    Hope this has not offended anyone as this is not my intention

    Paul

Similar Threads

  1. Nth Day Of Week Number Using Formula
    By paul_pearson in forum Excel Help
    Replies: 2
    Last Post: 06-16-2013, 06:40 PM
  2. Replies: 17
    Last Post: 12-18-2012, 04:15 PM
  3. Number validation in Text Boxes VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 2
    Last Post: 05-17-2012, 02:48 PM
  4. Week Number And Week Start Day of Week
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 4
    Last Post: 10-24-2011, 07:33 PM
  5. Dependent Data Validation (Using Only Formulas)
    By Admin in forum Download Center
    Replies: 2
    Last Post: 10-18-2011, 03:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •