+ Reply to Thread
Results 1 to 6 of 6

Data validation with drop down formulas

  1. #1
    Registered User
    Join Date
    05-25-2017
    Location
    Chicago
    MS-Off Ver
    Office 2016
    Posts
    31

    Question Data validation with drop down formulas

    Hey there everyone,

    This is my first post. I'm here after an hour of fruitless online research. I'm hoping someone out there can help!

    I have two columns. Each one contains a date. The first one is manually entered, and I would like the second to have data validation, with 2 drop-down options. However, the options need to be based on the date in Column1. I want one to be 6 months out, and the other 12 months out.

    For example:
    Column1 Column2
    1/1/2017 either 7/1/2017 or 1/1/2018
    2/1/2017 either 8/1/2017 or 2/1/2018

    So far I haven't had any luck creating a list with the edate formula, and I don't know how I could create these options with a table on another tab, as the date is based on a call reference. Any help would be greatly appreciated.

    - Will

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Data validation with drop down formulas

    See if you can do something with this idea.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Data validation with drop down formulas

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    05-25-2017
    Location
    Chicago
    MS-Off Ver
    Office 2016
    Posts
    31

    Re: Data validation with drop down formulas

    Hey Tsjallie,

    Thanks for the reply! I can set it up with a data validation reference for each row to match options in a corresponding row on another tab, which are themselves edate formulas based on the dates in column1. It'll take some time, as I need it for about 100 rows, but I think that's probably better than continuing my search for an easier way.

    Thank you!

  5. #5
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Data validation with drop down formulas

    @ Alan, you sure got a point there. I'll get my coat

    @Will,
    I'm posting a workbook with a better solution, but with a small piece of vba in it.
    The vba catches the event when a cell is selected. If that is in column B than the date in column A of the same row will be copied to the first cell of the validation list.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Data validation with drop down formulas

    How about if you add a helper column (C?)and use that for a "switch" to determine if you use 6 or 12 months, this could be a DD that says 6 or 12?
    Then, based on that, you have a simple formula in B that, based on what is selected in C, adds either 6 or 12 mths to A?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Data validation drop down with ghost drop down
    By KEDENNIS in forum Excel General
    Replies: 11
    Last Post: 04-04-2016, 03:49 PM
  2. Replies: 4
    Last Post: 10-28-2015, 12:59 PM
  3. Drop down data validation
    By Manvinder8 in forum Excel General
    Replies: 2
    Last Post: 06-22-2010, 11:25 AM
  4. Replies: 2
    Last Post: 04-03-2009, 02:17 PM
  5. Data validation in drop down box
    By crapmind in forum Excel General
    Replies: 1
    Last Post: 07-29-2007, 06:15 PM
  6. Drop down data validation
    By Stephen Reid in forum Excel General
    Replies: 5
    Last Post: 07-27-2006, 08:05 AM
  7. [SOLVED] Data Validation - Drop Down
    By John in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2006, 10:55 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