+ Reply to Thread
Results 1 to 7 of 7

Creating multiple IF Functions with some nested IF functions in false value return

  1. #1
    Registered User
    Join Date
    03-11-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    16

    Creating multiple IF Functions with some nested IF functions in false value return

    Hi All,

    I am trying to put together a largish IF Function with multiple IF functions and some nested IF functions.

    I have tried to build each one separately but need them all in one cell. So far i have got these:
    • IF(AND(I9>=3,DATEDIF(T4,U9,"d")>=3),"On Track - Blackbook","BlackBook Overdue")
    • IF(AND(T4>=M9,T4<=N9),"Clock Stopped",IF(AND(I9>=0,DATEDIF(T9,V9,"d")>=0),"On Track - Blackbook","BlackBook Overdue"))
    • IF(AND(T4>=R9,T4<=S9),"Public Comment Period",IF(AND(I9>=0,DATEDIF(T9,V9,"d")>=0),"On Track - Blackbook","BlackBook Overdue"))
    • IF(AND(T4>=T9,T4<=V9),"In Blackbook Process",IF(AND(I9>=0,DATEDIF(T9,V9,"d")>=0),"On Track - Blackbook","BlackBook Overdue"))
    • IF(AND(T4>=V9,T4<=W9),"Blackbook Complete in Appeal Period",IF(W9=”N/A”),"Complete","Blackbook Complete in Appeal Period"))
    • IF(AND(T4>=W9,T4<=Y9),"On Track – Appeals Report",IF(T4>=Y9),"Appeals Report Overdue"))

    Im not sure of how to put it all together as one formula.

    Any help would be greately appreciated

    Jake

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Creating multiple IF Functions with some nested IF functions in false value return

    If you post a sample workbook it will be much easier to help you.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    03-11-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    16

    Re: Creating multiple IF Functions with some nested IF functions in false value return

    Hi Jacc,

    Thanks for the reply.

    Ive attached a sample document to this post.

    I would like the final formula to be in cell 'J9' - if its possible!?

    thanks Sample.xlsx

    Jake

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating multiple IF Functions with some nested IF functions in false value return

    Jake in looking at your formulas above I thought I might take a stab at helping you, so I thought I would break down each of your if statements to which criteria you had in each formula for each result.
    Here's what I see and here is probably the key to helping you.

    For the result of On Track - Blackbook you had this criteria, I've broken it out into a list.
    On Track
    I9>=3
    DATEDIF(T4,U9,"d")>=3
    I9>=0
    DATEDIF(T9,V9,"d")>=0
    I9>=0
    DATEDIF(T9,V9,"d")>=0
    I9>=0
    DATEDIF(T9,V9,"d")>=0

    So you have this combination three times:
    I9>=0
    DATEDIF(T9,V9,"d")>=0

    So obviously we can cut that down to one.
    You might want to do this with all your other criteria and figure out how you want to structure the formula after you eliminate duplicates.
    I don't want to spend too much time studying your sheet looking at your cells and figuring out why you have all these criteria, but for my first example you have to decide whether all of that can go in one if and statement to get to the result of On Track... if it's true, if not you have to figure out which one to evaluate first the I9>=3 and the datedif statement that was matched with it or the other two statements that were paired together.

    I don't know how familiar you are with the or statement, but sometimes you can use and with or in certain combinations to get the results you want.

    The structure used a lot with continuous if formulas is this.

    If(statement to evaluate,"what to do if true",if(statement to evaluate, "what to do if true", etc.

    Every time you get a false you start another if statement.

    So if you want to break all your criteria for each outcome, eliminate the duplicates and then tell us which ones need to be evaluated first we can write your formula if you still need help.

    Good Luck!!!
    Last edited by skywriter; 03-16-2015 at 03:42 AM.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Creating multiple IF Functions with some nested IF functions in false value return

    This is just a stab in the dark since I have no idea what this spreadsheet is all about.
    I assume you know that you can grab the lower edge of the formula bar and pull down to view multiline formulas.
    To create a linebreak in a formula use Alt + Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    Also, in cell P9 you have this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    I reckon it could be replaced with this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-11-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    16

    Re: Creating multiple IF Functions with some nested IF functions in false value return

    Hi Jacc and Skywriter,

    Thanks for the feedback.

    Im looking into both of what you have said/provided and i'll report back soon

    Jake

  7. #7
    Registered User
    Join Date
    03-11-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    16

    Re: Creating multiple IF Functions with some nested IF functions in false value return

    Hi all,

    Skywriter thank you for your comments above, they’re very much appreciated, however what Jacc has provided is really quite close to what I was after. If you take a look at what Jacc has posted you might get a better understanding of what im trying to explain compared to me trying to explain it.

    To answer questions about what this spreadsheet is for, the best explanation is that it is a bit of a Date predictor of certain upcoming points in a long processes/a process map/a live workload tracker the process.
    Ive done some testing of what Jacc provided and it is making excel perform what I was intending in most cases.

    The only scenarios that don’t seem to be working are the following:
    “On Track – Blackbook” and/or “Blackbook Overdue”
    Relative part of Formula:
    IF(OR( AND(I9>=3,DATEDIF(T14,U9,"d")>=3), AND(I9>=0,DATEDIF(T9,V9,"d")>=0) ),"On Track - Blackbook","BlackBook Overdue"))))))))

    “Appeals Report Overdue”
    Relative part of Formula:
    IF(T14>=Y9,"Appeals Report Overdue",

    Another point that I didn’t think of and the formula is returning error “#VALUE!” is when column ‘R’ has “Enter Start Date” and column ‘S’ is blank. They will always end up with dates being manually inserted but until they do they will remain as “Enter Start Date” and a blank cell. With this though then I actually need a new return value of “Not Yet Advertised".
    So my guess would be to try and include something like:
    IF(AND(R9=”Enter Start Date”, S9=””),"Not Yet Advertised",

    Ive attached another sample that’s incorporated your work Jacc and have added in more rows of info so that each row’s status in column ‘J’ is returning a different part of the formula to get an easier picture of whats going on. Ive also add in little comment boxes for each cell down column 'J' with some notes about what i think is going on for each one.

    Any feedback would be much appreciated!

    Jake
    Attached Files Attached Files

+ 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. IF and LOOKUP with multiple nested IF functions
    By hydraulicwave in forum Excel General
    Replies: 9
    Last Post: 05-29-2014, 10:55 AM
  2. [SOLVED] Multiple nested AND functions in an IF statement
    By Cortlyn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2013, 05:41 PM
  3. Multiple nested functions
    By bstormes in forum Excel General
    Replies: 1
    Last Post: 04-13-2010, 01:21 PM
  4. Multiple IF OR functions (Nested)
    By cady923 in forum Excel General
    Replies: 8
    Last Post: 06-02-2009, 05:39 PM
  5. how do I use multiple nested functions?
    By TeeJay in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2005, 02:06 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