+ Reply to Thread
Results 1 to 3 of 3

If statement usage

  1. #1
    Registered User
    Join Date
    04-16-2009
    Location
    fiji
    MS-Off Ver
    Excel 2003
    Posts
    2

    If statement usage

    I am having a STUDENT MARKS SHEET ,
    Until now i used to verify whether a student is passed or failed the marks using the formula:
    =IF((MIN(D3,E3,F3,G3:H3,I3,J3)>=35),"P","F")
    as you see d3,e3,f3... are different subject rows.
    Now the problem is a group of subjects have a pass mark of 28 and others have 35
    so i try the following ways
    =IF(AND(MIN(D3,E3,F3,G3)>=28,MIN(H3,I3,J3)>=35)),"P","F")
    =IF(D3>=28,"P",IF(E3>=28,"P",IF..................","P","F"))))
    But none of them is working......
    please suggest me a solution

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: If statement usage

    Can you provide a sample ?

    As I see it this (with parentheses corrected) should work:

    =IF(AND(MIN(D3,E3,F3,G3)>=28,MIN(H3,I3,J3)>=35),"P","F")

    should work... though as the ranges are contiguous you can shorten to:

    =IF(AND(MIN(D3:G3)>=28,MIN(H3:J3)>=35),"P","F")

  3. #3
    Registered User
    Join Date
    04-16-2009
    Location
    fiji
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: If statement usage

    Thanq it has worked

+ 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