+ Reply to Thread
Results 1 to 11 of 11

Need help with nesting multiple IF functions

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    56

    Need help with nesting multiple IF functions

    Hi,

    New to the site, thanks for your input!

    I am trying to create an approval tracking sheet to display if a file is overdue or awaiting completion at various stages, something along the lines of this...

    C4 is the date sent to client (with an expect turnaround of 2 workdays) and D4 is the date returned from client.

    I think the error lies in the first statement of when a file is not yet returned (blank cell)

    =IF(D4="","waiting for client"),IF(D4>WORKDAY(C4,2),"overdue from client"))

    Thanks.

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

    Re: Need help with nesting multiple IF functions

    You don't need that close-bracket in the middle after client"

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Need help with nesting multiple IF functions

    whoops, I knew that, just a typo.

    The problem is that without a value in D4, it's still not returning an "overdue from client" when there is 2 workdays after C4.

    I am not sure how to use it properly, but perhaps the DATEDIF function?
    Last edited by source; 11-05-2013 at 01:49 PM.

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

    Re: Need help with nesting multiple IF functions

    I don't understand - if D4 is empty then you are "waiting for client", aren't you?

    You should have an action-if-false at the end of your second IF - maybe something like this:

    =IF(D4="","waiting for client",IF(D4>WORKDAY(C4,2),"overdue from client","okay"))

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    11-05-2013
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Need help with nesting multiple IF functions

    yes, I am still waiting for client, but want to indicate that I am waiting for client AND they are overdue.

    I know the solution must be with DATEDIF or TODAY functions, just not sure how to go about it.

    I hear that the WORKDAY function kind of messes things up.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,918

    Re: Need help with nesting multiple IF functions

    maybe:
    Please Login or Register  to view this content.
    Ben Van Johnson

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

    Re: Need help with nesting multiple IF functions

    Try this:

    =IF(D4="",IF(TODAY()>WORKDAY(C4,2),"overdue from client","waiting for client"),IF(D4>WORKDAY(C4,2),"overdue from client","okay"))

    Hope this helps.

    Pete

  8. #8
    Registered User
    Join Date
    11-05-2013
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Need help with nesting multiple IF functions

    yes!

    That's it.

    Thanks!

    I am now going to make it more comlex and try to throw a day count on how many days the file is in progess, how many days they are overdue. Will post my results.

  9. #9
    Registered User
    Join Date
    11-05-2013
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Need help with nesting multiple IF functions

    Wheee, this is fun
    I have managed to get the count in doing this,
    =IF(ISBLANK(D4), IF(TODAY()>WORKDAY(C4,2),"Overdue-"&DATEDIF(WORKDAY(C4,2),TODAY(),"d"),"In Progress for "&DATEDIF(C4,TODAY(),"d")), IF(D4>WORKDAY(C4,2),"Returned- late","Returned"))

    but have tried, but cannot seem include the DATEDIF function to do a day count of how many days late.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need help with nesting multiple IF functions

    I worked this out and maybe it will work for you. If the client hasn't responded within 2 days, "Waiting for client". If the client hasn't responded after 2 days "Overdue from client". If D4 is has a date within 2 days of C4 "OK" otherwise "Overdue from client". I think that this covers all the possibilities.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

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

    Re: Need help with nesting multiple IF functions

    Thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this 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. nesting multiple IF functions in macro
    By fbwhitey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2010, 09:00 AM
  2. Nesting OR &amp; AND Functions to Meet Multiple Criteria
    By Rhea in forum Tips and Tutorials
    Replies: 14
    Last Post: 05-23-2007, 10:39 PM
  3. Nesting OR & AND Functions to Meet Multiple Criteria
    By Andrew in forum Tips and Tutorials
    Replies: 3
    Last Post: 10-04-2005, 03:06 PM
  4. [SOLVED] Nesting functions in the functions dialog box
    By cs170a in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] Nesting functions in the functions dialog box
    By cs170a in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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