+ Reply to Thread
Results 1 to 6 of 6

Predict future date using "IF" function and multiple criteria using drop down list

  1. #1
    Registered User
    Join Date
    11-18-2020
    Location
    Massachusetts
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Predict future date using "IF" function and multiple criteria using drop down list

    Hello!

    Please see attached Excel worksheet.

    In Column A I have a drop down list with Three different Criteria - 1_Year, 6_Months, 3_Years. I'd like to be able to have a function that predicts the future date in Column C based off of the date entered in Column as well as the criteria in Column A. So For example:

    If A3 is 1_year, and B3 date is 12/1/2020, then C3 should equal 12/1/2021. However, If A3=3_year, C3 should then be 12/1/2023 and so forth.

    I had started off with trying to input the function into the cell as: =IF(A3="1_Year",DATE(YEAR(B3)+1,MONTH(B3),DAY(B3)))
    It worked! But I quickly realized it wouldn't let me add onto it for the other 2 criteria, unless I'm missing something.

    Please Help
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Predict future date using "IF" function and multiple criteria using drop down list

    You can use this in C3:

    =IFERROR(DATE(YEAR(B3)+INDEX({1;3;0},MATCH(A3,{"1_Year";"3_year";"6_Months"},0)),MONTH(B3)+IF(A3="6_Months",6,0),DAY(B3)),"")

    Format as a date in the style you prefer.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-18-2020
    Location
    Massachusetts
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Predict future date using "IF" function and multiple criteria using drop down list

    Thank you so much! It is working for calculating the "1_year" and "6_month" marks, but no the "3_year" mark. Sorry I'm not very skilled at excel at all! Is there something else I need to input into the formula?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Predict future date using "IF" function and multiple criteria using drop down list

    I've attached your workbook with the formula in C3 - it works for me.

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-18-2020
    Location
    Massachusetts
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Predict future date using "IF" function and multiple criteria using drop down list

    Perfect Thank you!!


    Kel

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Predict future date using "IF" function and multiple criteria using drop down list

    Glad to hear it, and happy to help. Thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  2. Drop Down List with "Find" function
    By cks1026 in forum Excel General
    Replies: 7
    Last Post: 01-23-2016, 02:38 PM
  3. Replies: 0
    Last Post: 08-30-2012, 04:39 PM
  4. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM
  5. Date Picker and "Permanent" in Drop Down List
    By yocin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 10:12 PM
  6. Date Picker and "Permanent" in Drop Down List
    By yocin in forum Excel General
    Replies: 2
    Last Post: 11-18-2010, 09:34 AM
  7. Validation, how to see "today" date on top of the drop down list?
    By Hoshyar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-18-2005, 11:02 AM

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