+ Reply to Thread
Results 1 to 5 of 5

Help needed formulating an IF function and WORKDAYS formula

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 365
    Posts
    5

    Help needed formulating an IF function and WORKDAYS formula

    I am working on a spreadsheet where it calculates the number of days a form is overdue. I have two types of forms "Form 8" which has 10 working days to process and a "Form 11" which has 14 working days to process. Currently i have the spreadsheet setup as follows
    Forms(B column)|Date of Injury(G column)|Date Received (I Column)|Due Date (K Column)|Days Past Due (L Column)|Resolved (M column)|

    I would need for (K column) to provide the due date according to the form type entered in (B column) and the starting date from (G column). I would also like it to be blank if nothing is entered in the (B Column). I have been trying this formula which works for the most part:

    =IF(B2="Form 8",WORKDAY(G2,10,Holidays!A:A),IF(B2="Form 11",WORKDAY(G2,14,Holidays!A:A), IF(ISBLANK(B2),"")))

    the second part to the problem is to have a formula in the (L Column) total up the number of days they are past due according to the due date in (K column)and the date received in (I column) and to have the cells remain blank until something is in (K column).

    I feel i'm close but know there's an easier way and have issues with the formatting of the formula (at least that's what excel tells me...Constantly.)

    Thank you in advance. Any help or direction is much appreciated.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help needed formulating an IF function and WORKDAYS formula

    Try this taking the assumption of only 3 possible entries in B2 (Form 8, Form 10, Left Blank)

    =IF(B2="","",WORKDAY(G2,IF(B2="Form 8",10,14),Holidays!A:A))

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 365
    Posts
    5

    Re: Help needed formulating an IF function and WORKDAYS formula

    WOW, that simplified it and it works great. thank you so much. I was able to figure out the second part myself. Thanks again.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help needed formulating an IF function and WORKDAYS formula

    Great, glad to help out.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    52,110

    Re: Help needed formulating an IF function and WORKDAYS formula

    tiger6115...

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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)

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