Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Eararaldor
Jul 30, 2007
Fanboys, ruining gaming since the 1980's
Ok got a small problem with a formula and I think my brain has died. Any help will be appreciative.

I have three sections that grade the person on a percentage over how much they have completed. Each section is labelled Pass, Merit and Distinction. What I am trying to accomplish is to have a cell on my spreadsheet that gives an overall statement depending on those percentages.

So for example:

Pass: 100%, Merit: 100% and Distinction: 100% = In this scenario I want the cell to display Distinction.

In another example:

Pass: 100%, Merit: 50% and Distinction: 100% = I want the cell to display Pass as the person has failed the Merit section so cannot be graded any higher.

Now currently this is what I have ended up displaying:
code:
=IF(CR5<=100%,"Fail",IF(CW5<=100,"Pass",IF(DB5<=100,"Merit",IF(DB5=100,"Distinction"))))
Cell Keys
CR5 = Percentage for Pass
CW5 = Percentage for Merit
DB5 = Percentage for Distinction

Which does not work. I'm probably missing something really simple here so feel free to call me stupid.

Adbot
ADBOT LOVES YOU

Eararaldor
Jul 30, 2007
Fanboys, ruining gaming since the 1980's

Sub Par posted:

You're missing an "else" answer for that last if.

I think I'm missing something else.

code:
=IF(CW5<=100%,"Pass",IF(DB5<=100%,"Merit",IF(DB5=100,"Distinction","Fail")))
Locks the cell on Pass regardles of what the other cells say.

Eararaldor
Jul 30, 2007
Fanboys, ruining gaming since the 1980's

Scientastic posted:

The formula you want is this:
=IF(CR5<100,"FAIL",IF(CW5<100,"PASS",IF(DB5<100,"MERIT","DISTINCTION")))

Brilliant, I knew it was something along those lines. Thanks for your help.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply