+ Reply to Thread
Results 1 to 5 of 5

Calculate Working days based on drop down

  1. #1
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    131

    Calculate Working days based on drop down

    Hello,

    I have a requirement into Excel, which will calculate working days for drop down 1 and 2.

    And for 3rd drop down, calculation will be 2 weeks days (including weekends).

    For e.g. - I have below drop down list :

    Project 1
    Project 2
    Project 3

    And 2 columns as Date Received and Date Closed

    If the user selects, Project 1 or Project 2, and against this if the working days are more than 2, cell to get highlight.

    If the user selects Project 3, calculation will be 2 weeks. And if it is more than 2 weeks, cell to get highlight.

    Any other ideas are still welcome.

    Please suggest.

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,329

    Re: Calculate Working days based on drop down

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    131

    Re: Calculate Working days based on drop down

    I've attached a sample workbook.

    In row 4, user has selected Project 2 and we get the result as 3 working days. Hence the cell has been highlighted. If for the same row, the option is selected as Project 3, the cell should not get highlighted.

    Now if we see row 5, option is selected as Project 3, the result is showing more than 2 working days, but yet the cell should not get highlight.

    For Project 1 and Project 2, if more than 2 working days, cells to get highlighted.

    If Project 3 selected, and it is more than 2 weeks cells to get highlighted.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,329

    Re: Calculate Working days based on drop down

    Try this CF rule:

    =OR(AND($D2="Project 3",$E2>14),AND($D2<>"Project 3",$E2>2))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    131

    Re: Calculate Working days based on drop down

    Thanks ! this did the trick

+ 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: 7
    Last Post: 03-06-2020, 08:35 AM
  2. [SOLVED] Formula to calculate working days and calendar days per month-year ?
    By donny007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2018, 06:23 PM
  3. Replies: 8
    Last Post: 07-22-2016, 02:52 AM
  4. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  5. Replies: 0
    Last Post: 06-11-2015, 03:12 AM
  6. [SOLVED] Calculate END DATE based on START DATE & No of working days
    By prashantha in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-20-2013, 07:22 AM
  7. Calculate total working days and excepted leave days
    By megaiooo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2013, 09:29 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