+ Reply to Thread
Results 1 to 6 of 6

Nested IF Statement

  1. #1
    Registered User
    Join Date
    12-09-2019
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    3

    Nested IF Statement

    Good day


    I need assistance with creating a nested IF statement with non-related logical tests. I tried to combine the logical tests with the OR function and it returns an error. I also tried using the IFERROR function and it only returns the results for cells that have the first logical test and the rest are returned as blanks.


    Kind regards,
    Bokamoso
    Last edited by bokamosokomane; 12-09-2019 at 05:09 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Nested IF Statement

    Your question is currently impossible to answer. Please make your issue clearer.

    Attaching a sample workbook (not a picture or pasted copy) would be best. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    12-09-2019
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    3

    Re: Nested IF Statement

    Hi Olly


    I have attached the working spreadsheet. The column in question is the "Delivery Status" where the 3 conditions(logical tests) are currently separated by the IFERROR function. The requirements are as followss:
    • Return "Not Yet Delivered" if the TO Confirmation Date is "Transfer Orders Not Confirmed
    • If "Rescheduling" is "yes" return "Delivered Late" if the "TO Confirmation Date" is more than 14 days with reference to the "Reschedule date (actual) or return "Delivered On Time" if the "TO Confirmation Date" is less than or equal to 14 days with reference to the "Reschedule date (actual)"
    • If the "Rescheduling" is "No" then return "Delivered Late" if the "TO Confirmation Date" is greater than 14 days with reference to the "Release date (scheduled)" or retrun "Delivered On Time" if the "TO Confirmation Date" is less than or equal to 14 days with reference to "Release date (scheduled)"
    Attached Files Attached Files

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Nested IF Statement

    Formatted your data as a table to make the formula a little easier to read / audit:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-09-2019
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    3

    Re: Nested IF Statement

    Hi Olly


    The function was tested and is working as required. Thank you very much.


    regards

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Nested IF Statement

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    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.

+ 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: 2
    Last Post: 03-01-2014, 11:02 AM
  2. [SOLVED] Need an IF Function for a Weight Loss Challenge
    By kmlloyd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2013, 04:17 PM
  3. Excel Challenge
    By jwindholz2725 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2011, 01:26 PM
  4. Excel vs 123 Challenge
    By jdelayknee in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-09-2006, 08:32 PM
  5. choose function challenge
    By marcmarc in forum Excel General
    Replies: 3
    Last Post: 11-18-2006, 01:42 PM
  6. A new excel challenge
    By Nick Danger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2005, 02:05 PM
  7. MATCH FUNCTION?...challenge
    By cecilluen in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 09-06-2005, 12:05 PM
  8. [SOLVED] A COUNTIF function Challenge
    By Mr. G. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-19-2005, 04: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