+ Reply to Thread
Results 1 to 4 of 4

help predict pass or fail

  1. #1
    Registered User
    Join Date
    11-13-2020
    Location
    Sydney, Australia
    MS-Off Ver
    2016
    Posts
    12

    Exclamation help predict pass or fail

    Hey guys,

    I am trying to create a formula that can predict if a student will pass/fail the semester. It has multiple conditions. I have figured out all but one and it's making me crazy. Can anyone please have a look and help me?

    So basically, I need to embed the formula used in cell E29 to cell C24. Cell E29 contains another condition that excel needs to look at before deciding on the student's result.

    C24=IF(AND(C22>=2,C9<2,C8=0,E29),"May Graduate","May Not Graduate")


    E29=IF(COUNTIF(M12:M18,"Fail")>0,"Fail","Pass")


    I have mentioned where I need to add E29 in C24 formula.
    Last edited by FDibbins; 11-13-2020 at 01:35 AM.

  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,946

    Re: help predict pass or fail

    Hi, welcome to the forum

    Please use titles that describe what you are trying to achieve (think google terms)...I have changed your title for you - this time.

    It's always easier if you provide a sample WB, but see if this will get you heading in the right direction (looks like you were almost there)...
    C24=IF(AND(C22>=2,C9<2,C8=0,E29="Fail"),"May Graduate","May Not Graduate")

    and btw, this could be shortened, too...
    E29=IF(COUNTIF(M12:M18,"Fail")>0,"Fail","Pass")

    E29=IF(COUNTIF(M12:M18,"Fail"),"Fail","Pass")
    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
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: help predict pass or fail

    May be do not need E29

    C24=IF(AND(C22>=2,C9<2,C8=0,COUNTIF(M12:M18,"Fail")=0),"May Graduate","May Not Graduate")
    Quang PT

  4. #4
    Registered User
    Join Date
    11-13-2020
    Location
    Sydney, Australia
    MS-Off Ver
    2016
    Posts
    12

    Re: help predict pass or fail

    Hi guys,

    Thanks for your help. I was almost there and just needed that push! :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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