+ Reply to Thread
Results 1 to 2 of 2

Data Validation list - display only dates of this month from 1 to today

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Data Validation list - display only dates of this month from 1 to today

    Dear All,

    I'm trying to implement the data validation list in such a way that it should display only dates from first of this month to today

    I've created Named range for the below formula which is working fine, but its not working when it is applied to data validation list

    So request you to check and clarrify this.

    =IFERROR(DATE(YEAR(TODAY()),MONTH(TODAY()),IF(DAY(TODAY())>ROWS(Sheet1!D$1:D1),ROWS(Sheet1!D$1:D1),"")),"")

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation list - display only dates of this month from 1 to today

    You can't really create an array in a DV formula. The way I would do this is:

    1) On a "Lists" sheet somewhere enter a column of numbers 1-31
    2) Name these 31 cells MyDates using the Name Manager
    3) In the Name Manager created a second named Formula called MyList with this RefersTo:
    =OFFSET(MyDates, , , DAY(TODAY()), )
    4) In the Data validation cell, use these settings for the drop down:

    Allow: List
    Source: =MyList
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. How to display data based on a selected month from a drop-down list
    By Ahmed Ammar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2014, 09:24 PM
  2. [SOLVED] How do you display the first day of a given month using the today() function
    By john dalton in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2013, 07:42 AM
  3. [SOLVED] Conditional Formatting of: dates within 1 month and dates before today.
    By Luke Smith in forum Excel General
    Replies: 5
    Last Post: 06-18-2013, 07:29 AM
  4. [SOLVED] display cell to show only Month/year to do sumif calc if today()= any day of month
    By fireguy7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2013, 06:55 PM
  5. Replies: 2
    Last Post: 12-20-2012, 07:40 PM
  6. Replies: 1
    Last Post: 09-05-2012, 11:39 AM
  7. Data Validation Drop Down List Display
    By laundry125 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-28-2008, 01:20 AM

Tags for this Thread

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