+ Reply to Thread
Results 1 to 4 of 4

Need help with multiple if conditions

  1. #1
    Registered User
    Join Date
    12-11-2018
    Location
    Phoenix, AZ
    MS-Off Ver
    Professional Plus 2016
    Posts
    2

    Question Need help with multiple if conditions

    We are trying to calculate the number of data entry errors our team caused in a month.

    We have 4 columns: LastName, FirstName, Degree, Salutation. What the proper Salutation should be is determined by the Degree. If an MD/DO it must be “Dr. LastName”, if any other Degree it must be “FirstName”.

    I’m trying to create a formula where if the degree is not MD or DO and the Salutation contains “Dr.”, or if the Degree is MD or DO and the Salutation does not contain “Dr.” you get a result of 1. I’m using
    =IF(OR(AND(ISNUMBER(SEARCH("*Dr.*",D5)),OR(C5="MD",C5="DO")),AND(ISNUMBER(SEARCH(B5,D5)),OR(C5<>"MD",C5<>"DO"))),0,1)
    but this isn’t working for an MD/DO whose Salutation is wrong, and I cannot figure out how else to get it to work.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need help with multiple if conditions

    =IF(ISERROR(FIND("Dr",D2)),IF(OR(C2="MD",C2="DO"),1,0),IF(OR(C2="MD",C2="DO"),0,1))
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Need help with multiple if conditions

    Or try this in E2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-11-2018
    Location
    Phoenix, AZ
    MS-Off Ver
    Professional Plus 2016
    Posts
    2

    Red face Re: Need help with multiple if conditions

    Neither of those worked for all contingencies, but they did help me find a solution of
    =IF(AND(OR(C2="MD",C2="DO"),D2="Dr. "&A2),0,1)-IF(AND(OR(C2<>"MD",C2<>"DO"),D2=B2),1,0)+IF(AND(OR(C2="MD",C2="DO"),D2=B2),1,0)


    Thank you so much for all your help!

+ 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: 29
    Last Post: 01-01-2017, 10:25 AM
  2. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  3. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  4. Replies: 0
    Last Post: 08-14-2012, 01:18 PM
  5. Insert multiple values from seperate table based on multiple conditions
    By drakesong in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-28-2011, 06:04 PM
  6. Replies: 1
    Last Post: 12-05-2010, 04:39 AM
  7. [SOLVED] How to multiple conditions to validate more than 2 conditions to .
    By Bhuvana Govind in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2005, 04:06 PM

Tags for this Thread

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