+ Reply to Thread
Results 1 to 2 of 2

Multiple variables forIF and COUNTIF

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    11

    Multiple variables forIF and COUNTIF

    OK, I am still an amateur at writing formulas and I am trying to think about how to explain what I am trying to do. (Column C will not change values)

    In H4; if D4 is greater than C4 with 1 Eval in G4 = Fail; if D4 is equal to C4 with 1 Eval in G4 = Pass. (H5:H11 have my original formula)

    Here is the part I cannot figure out with cells E4 and F4.
    If D4 is greater than C4 and E4 equals C4 with 2 in G4 = Pass;
    if D4 and E4 equal C4 with 2 in G4 = Pass;
    if D4 equals C4 and E4 is greater than C4 and 2 in G4 = Fail;
    if D4 and E4 are greater than C4 and 2 in G4 = Fail;
    if F4 is greater than C4 E4 with 3 in G4 = Fail;
    if F4 equals C4 and equals E4 with 3 in G4 = Pass;
    if F4 is greater than C4 and equal to or greater than E4 with 3 in G4 = Fail.

    What I am trying to do is establish a Pass or Fail in that row. The Pass is based upon the cell being equal to or less than the Column C cell within that row and the Fail is based upon the cell being greater than the Column C cell within that row.

    If 1st Eval Pass and no other Evals then Pass.
    If 1st Eval Fail and no other Evals then Fail.
    If 1st Eval Pass and 2nd Eval Fail and no other Eval then Fail.
    If 1st Eval Fail and 2nd Eval Pass and no other Eval then Pass.
    If 1st Eval and 2nd Eval Pass and 3rd Eval is Fail then an overall Fail.
    If 1st Eval Pass and 2nd Eval Fail and 3rd Eval Pass then overall Pass.
    If 1st Eval Pass and 2nd Eval Fail and 3rd Eval Fail then overall Fail.
    If 1st, 2nd and 3rd Evals Pass then overall Pass.
    If 1st, 2nd and 3rd Evals Fail then overall Fail.
    Does this make sense?
    I hope that someone can help me with this one. I received fantastic help for cell H12.

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Multiple variables forIF and COUNTIF

    You are confusing the functions of the logical-AND operator and the string building (concatenating) & operator:


    Please Login or Register  to view this content.
    "apples" AND "ORANGES" ==> ERROR!
    "APPLES" & "ORANGES" = "APPLESORANGES"

    H4: =IF(AND(D4>C4,G4=1),"Fail",IF(AND(C4=D4,G4=1),"Pass",""))

    D4>C4 evaluates to either True or False. D4= 1 / C4 = 0: D4>C4 ---> True. D4&C4 ===> 10, C4&D4 ---> 01
    Last edited by protonLeah; 08-02-2013 at 10:02 PM.
    Ben Van Johnson

+ 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. =countif with two variables
    By check335 in forum Excel General
    Replies: 5
    Last Post: 04-14-2009, 01:39 PM
  2. countif multiple variables, multiple sheets.
    By LeahDT1 in forum Excel General
    Replies: 2
    Last Post: 01-14-2009, 10:53 AM
  3. Countif using multiple variables within a column
    By schlicken in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-24-2007, 01:17 PM
  4. COUNTIF() With multiple ranges and variables
    By Thansal in forum Excel General
    Replies: 3
    Last Post: 07-12-2006, 12:35 PM
  5. Replies: 1
    Last Post: 07-10-2005, 06:05 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