+ Reply to Thread
Results 1 to 6 of 6

Display , "PASS"," MERIT" or "DISTINCTION"

  1. #1
    Registered User
    Join Date
    11-25-2007
    Location
    Derby UK
    Posts
    8

    Display , "PASS"," MERIT" or "DISTINCTION"

    Hi everyone can someone please help me with what I believe is a minor problem (at least I hope it is!!) I have a spreadsheet that calculates verious total values. What I want to achieve is if these values are between 2.5 and 4.4 to append "PASS" , if the value is between 4.5 and 6.4 to append "MERIT" and if the value is 6.5 and over "DISTINCTION in the adjacent cell. Any help would be greally appreciated.

    Thanks in anticipation

    Integrity

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Display , "PASS"," MERIT" or "DISTINCTION"

    Try this

    =IF(AND(A2>=2.5,A2<=4.4),"PASS",IF(AND(A2>=4.5,A2<=6.4),"MERIT",IF(A2>=6.5,"DISTINCTION","NA")))

    I have put NA for values less than 2.5. You can change that to whatever you want.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Display , "PASS"," MERIT" or "DISTINCTION"

    =LOOKUP(A1, {0,2.5,4.5,6.5}, {"Fail","Pass","Merit","Distinction"})

    @Arlu: What does your formula return for 4.45?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Display , "PASS"," MERIT" or "DISTINCTION"

    Hmmm NA, why is that so?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Display , "PASS"," MERIT" or "DISTINCTION"

    Try the Evaluate Formula button.

  6. #6
    Registered User
    Join Date
    11-25-2007
    Location
    Derby UK
    Posts
    8

    Re: Display , "PASS"," MERIT" or "DISTINCTION"

    Thank you so much guys for your rapid response to my problem. I am pleaseed to report tat the issue has been solved sucessfully. Indeed you are a credit to the forum.
    Best regards

    Integrity

+ 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