+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 dada validation

Hybrid View

DAT Excel 2007 dada validation 03-16-2013, 07:47 AM
DAT Re: Excel 2007 dada validation 03-16-2013, 07:48 AM
samba_ravi Re: Excel 2007 dada validation 03-16-2013, 08:20 AM
Palmetto Re: Excel 2007 dada validation 03-16-2013, 06:35 PM
martindwilson Re: Excel 2007 dada validation 03-16-2013, 07:40 PM
NeedForExcel Re: Excel 2007 dada validation 03-17-2013, 01:07 AM
martindwilson Re: Excel 2007 dada validation 03-17-2013, 07:32 AM
  1. #1
    Registered User
    Join Date
    03-16-2013
    Location
    Hpool
    MS-Off Ver
    Excel 2007
    Posts
    8

    Excel 2007 dada validation

    Hi,

    I'm fairlynew to creating office spreadsheets, but can usually get by with google and looking at example templates.

    However I can't find the answer to the following question (probably because I am not phrasing g it correctly).

    I am need to filter my table by week date (eg show all rows for w/c 22 march.

    I have achieved this by using data validation, drop down list option to a pre populated list of dates on the reference shhet. This works fine. The list is 52 rows long (each week of the year).

    Is there a way of only showing the weeks greater than today in the drop down list? Weeks gone by will never be used.

    I can use the conditional data by directly referencing date list and by usinf the named range method. Can't write vb though.

    Can anyone help?

  2. #2
    Registered User
    Join Date
    03-16-2013
    Location
    Hpool
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Excel 2007 dada validation

    Apologies fot typos. On phone.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: Excel 2007 dada validation

    post the sample sheet

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Excel 2007 dada validation

    See if you can adapt this approach.

    Create a named formula for the position of the current week in the list

    Name: Current_wk
    Refers to: =MATCH(TODAY(),Sheet1!$A$1:$A$52,1)

    Create a named range for the list of weeks that exclude previous week dates
    Name: Weeklist
    Refers to: =INDIRECT("Sheet1!$A$"&Current_wk&":$A$52")

    Use Weeklist as the list source in the data validation
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel 2007 dada validation

    validation list can be
    ist entry say in H1
    =TODAY()-WEEKDAY(TODAY())+9
    second entry filled down to week 52
    =H1+7
    this will give the next 52 weeks mondays
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Excel 2007 dada validation

    @martindwilson -

    Hey!

    Could you please stress a bit and Break Up the formula for my better understanding.

    I am unable to conclude how your are able to get a Monday as the return value every time with the formula?


    Thanking You,

    Deep

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel 2007 dada validation

    TODAY()-WEEKDAY(TODAY()) will give the previous saturday try it then evaluate it,
    monday 10th -2 say would give sat 8th ,
    wed 10th -4 gives sat 6th
    add 2 to get monday add 9 to get following monday week

+ 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