+ Reply to Thread
Results 1 to 4 of 4

Combining IF and OR formulas

  1. #1
    Registered User
    Join Date
    10-31-2013
    Location
    Kaiserslautern Germany
    MS-Off Ver
    Excel 2007
    Posts
    2

    Combining IF and OR formulas

    I am having a little trouble getting this formula figured out. I have three columns Type (E5), Score (K5), and number of Hits (L5).

    IF E5 is equal to M16 then use the following formula =IF(AND(L5>=0, L5<=22),"DQ",IF(AND(L5>=23, L5<=29),"MM",IF(AND(L5>=30, L5<=35), "SS", IF(AND(L5>=36, L5<=40), "EX",0))))

    OR

    IF E5 is eqaul to M9 use the following formula =IF(AND(L6>=0, L6<=23),"DQ",IF(AND(L6>=24, L6<=28),"MM",IF(AND(L6>=29, L6<=35), "SS", IF(AND(L6>=36, L6<=40), "EX",0))))

    How do I combine the two formula's in cell K5?

    Thanks in advance for any help.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Combining IF and OR formulas

    Hi and welcome to the forum

    Based on just what you said you wanted above, and untested...

    =if(E5=E16, IF(AND(L5>=0, L5<=22),"DQ",IF(AND(L5>=23, L5<=29),"MM",IF(AND(L5>=30, L5<=35), "SS", IF(AND(L5>=36, L5<=40), "EX",0)))), if(E5=M9, IF(AND(L6>=0, L6<=23),"DQ",IF(AND(L6>=24, L6<=28),"MM",IF(AND(L6>=29, L6<=35), "SS", IF(AND(L6>=36, L6<=40), "EX",0)))), ""))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-31-2013
    Location
    Kaiserslautern Germany
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Combining IF and OR formulas

    That Worked out PERFECT! M16 and M9 where text, I forgot to say that in the thread. I Put "" around them and it worked smooth as butter. Thanks FDibbins!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Combining IF and OR formulas

    Great stuff

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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. Combining IF formulas
    By donyc in forum Excel General
    Replies: 4
    Last Post: 09-09-2010, 05:42 PM
  2. combining formulas
    By ericc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2010, 08:26 PM
  3. Combining 2 formulas together.
    By cat1410 in forum Excel General
    Replies: 2
    Last Post: 08-05-2008, 02:21 PM
  4. combining two formulas
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-15-2006, 09:36 PM
  5. Try to Combining formulas
    By ben simpson in forum Excel General
    Replies: 3
    Last Post: 03-17-2006, 11:55 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