+ Reply to Thread
Results 1 to 6 of 6

Calculation of future date based on condition

  1. #1
    Registered User
    Join Date
    02-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Calculation of future date based on condition

    Dear friends,

    I would appreciate if you kindly help me to prepare an excel sheet to calculate future date based on condition, the details of that I have mentioned below:

    When I receive task from Client “X” I have to deliver it after 7 working days
    When I receive task from Client “Y” I have to deliver it after 7 calendar days
    When I receive task from Client “Z” I have to deliver it after 2 Months

    If I select Clients from dropdown list (eg. X,Y,Z) automatically the Number of days to deliver will be populated (eg. 7 working days, 7 calendar days, 2 months) and then if I enter the receive date the delivery date will be populated automatically based on clients.

    I know how to create dropdown, also calculate working days and calendar days but don’t know how to calculate future date based on condition.

    Thanks in advance for your assistance
    Last edited by ashokdc; 02-26-2011 at 02:38 PM.

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

    Re: Calculation of future date based on condition

    Try is this ok:

    =LOOKUP(A2,{"X","Y","Z"},C2+{10,7,62})-IF(A2="X",2*(WEEKDAY(C2,2)<6),0)

  3. #3
    Registered User
    Join Date
    02-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Calculation of future date based on condition

    Quote Originally Posted by zbor View Post
    Try is this ok:

    =LOOKUP(A2,{"X","Y","Z"},C2+{10,7,62})-IF(A2="X",2*(WEEKDAY(C2,2)<6),0)
    Hi,
    Its working fine. many many thanks.
    I need one more help in the same sheet
    If i select the client in A2 field , days to deliver should be populated automaticaly in field B2
    How to get that.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Calculation of future date based on condition

    Remove C2 from formula:

    =LOOKUP(A2,{"X","Y","Z"},{10,7,62})-IF(A2="X",2*(WEEKDAY(C2,2)<6),0)

  5. #5
    Registered User
    Join Date
    02-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Smile Re: Calculation of future date based on condition

    Quote Originally Posted by zbor View Post
    Remove C2 from formula:

    =LOOKUP(A2,{"X","Y","Z"},{10,7,62})-IF(A2="X",2*(WEEKDAY(C2,2)<6),0)
    Thank you verymuch.
    Its working.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Calculation of future date based on condition

    Moved to Excel Worksheet Functions.

    @ashokdc,

    before you post your next question, please make sure to read the forum rules and post into a question forum. The Tip.com Feedback forum is not for Excel questions.

+ 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