+ Reply to Thread
Results 1 to 3 of 3

If Conditions then Date

Hybrid View

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    82

    If Conditions then Date

    Hi Everyone,
    Would like to seek help on some Excel sheet Im working on.
    Basically what I want is to automatically change a target date depending on the Severity of the Issue.
    On the image provided, On Column C is the Severity, Column D I called the Last Date of Update, Column E is my Target date.
    It should return as below:

    Severity is High
    Taget Date (Column E) = Date of Last Update(Column D) + 2 Years

    Severity is Moderate
    Taget Date (Column E) = Date of Last Update(Column D) + 4 Years

    Severity is Low
    Taget Date (Column E) = Date of Last Update(Column D) + 5 Years

    Hope Someone can help me with this? Thank you very much.

    Vincent
    Attached Images Attached Images
    Last edited by Vincent.Eymard; 11-02-2010 at 03:48 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,111

    Re: If Conditions then Date

    This maybe:

    =DATE(YEAR(C1)+LOOKUP(B1,{"High","Low","Moderate"},{2,5,4}),MONTH(C1),DAY(C1))

    Or this if you don't care about one day due to leap year

    =C1+DATE(LOOKUP(B1,{"High","Low","Moderate"},{2,5,4}),1,)

    However, both will give you error if none of criterai is written (High, Low, Moderate)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    10-13-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: If Conditions then Date

    Quote Originally Posted by zbor View Post
    This maybe:

    =DATE(YEAR(C1)+LOOKUP(B1,{"High","Low","Moderate"},{2,5,4}),MONTH(C1),DAY(C1))

    Or this if you don't care about one day due to leap year

    =C1+DATE(LOOKUP(B1,{"High","Low","Moderate"},{2,5,4}),1,)

    However, both will give you error if none of criterai is written (High, Low, Moderate)

    @zbor
    You are a lifesaver, you have no idea how much this saved me a huge amount of time.
    Thank you so very much, appreciate it. ^^

+ 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