+ Reply to Thread
Results 1 to 9 of 9

Complex nest IF function

  1. #1
    Forum Contributor
    Join Date
    07-06-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    253

    Complex nest IF function

    Hello,
    Rule 1 - Scenario 1 - if the payer is any of the of the yellow highlighted ones then the outcome is automatically No Note
    Rule 2 - If in Scenario 1, the blue highlighted texts appear then the next step is checking at scenario 2 (unless left blank). If the response is No Show, then the outcome needs to be No Note. If the response is Show then the outcome needs to be Note
    Rule 3 - If Scenario 1 and 2 satisfy the conditions then we need to move onto 3 to see if the response is either Yes or No. If no, then the outcome is No Note. If yes then it's Note.

    Attached is a flowchart to help explain Untitled.png
    Attached Files Attached Files
    Last edited by kyber; 02-04-2022 at 01:33 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Complex nest IF function

    This produces the results shown in the sample workbook.

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


    You could OR the "No Note" conditions but I suspect the logic would be less easy to follow. As it is, it follows the flow chart.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Complex nest IF function

    Please try

    =IF(C2="","",IF(OR(LEFT(C2)<>"A",D2="No Show",E2<>"Yes"),"No ",)&"Note")


    =IF(C2="","",IF(AND(LEFT(C2)="A",D2<>"No Show",E2="Yes"),,"No ")&"Note")
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-06-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    253

    Re: Complex nest IF function

    I am not able to fully work this out. Though I'm getting close. What is the purpose of the "A"

  5. #5
    Forum Contributor
    Join Date
    07-06-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    253

    Re: Complex nest IF function

    Is there a way to link a list of approved and nonapproved payer types from a separate sheet that way they need to be individually listed in the formula?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Complex nest IF function

    What was wrong with the solution in post #12?


    Edit: yes, that should be post #2, not post #12
    Last edited by TMS; 03-08-2022 at 05:01 PM.

  7. #7
    Forum Contributor
    Join Date
    07-06-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    253

    Re: Complex nest IF function

    Do you mean #2?

    I was finally able to to get it to work moments ago. However, I was wondering if there's a way to reference a list of approved or not approved list of payers from another tab so that I don't have to manually update the formula as opposed the referenced cells in the separate columns.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Complex nest IF function

    Do you mean #2?
    That would be the one .

    Always best to ask for what you want at the outset, not a month on. I've slept since then and, in all honesty, I’ve forgotten what the formula did and why.

    If the formula works, mark the thread solved and start a new one with the new requirement. That way, you might get more input. Probably sensible to provide a link to this thread for background.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  9. #9
    Forum Contributor
    Join Date
    07-06-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    253

    Re: Complex nest IF function

    My apologies, I was on vacation.

+ 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. [SOLVED] How to nest a left function within a sumif function?
    By LisaK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2017, 09:21 AM
  2. Nest If function
    By Anonbrumbie in forum Excel General
    Replies: 7
    Last Post: 09-06-2008, 02:48 AM
  3. HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2005, 04:10 PM
  8. HOW DO I NEST MORE THAN 1 IF FUNCTION?
    By Rochelle B in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2005, 10:06 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1