Returning text after a specific value is computed

ddennis

New Member
Joined
Apr 21, 2004
Messages
22
Good day to all:

I have created a spreadsheet that computes GPA's. It works great. I would like specific text returned in a cell when GPA's is in a certain range.

Here are the parameters: GPA of 3.2 returns "cum laude"
GPA of 3.5 returns "magna cum laude"
GPA of 3.8 returns "summa cum laude"

I am not a programmer, any help is greatly appreciated.

Regards,

Dion
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
How about a nested If statement, something like

if("source cell"=3.2,"cum laude",if("source cell"=3.5,"magna cum laude",if("source cell"=3.8,"summa cum laude"," ")))
 
Upvote 0
Hi Dion,

You could get this w/ a single formula or set up a table and reference it; or do it with VBA code.

A single formula might look like (w/o seeing your data)...

=IF(A1>=3.2,"cum laude",IF(A1>=3.5,"magna cum lade",IF(A1>=3.8,"summa cum lade",IF(A1>4.0,"Out of Range"))))
 
Upvote 0
Hello,

Try

=IF(A1=3.2,"cum laude",IF(A1=3.5,"magna cum laude",IF(A1=3.8,"summa cum laude","VALUE NOT RECOGNISED")))
 
Upvote 0
Can't hurt to pick up a more efficient idiom for this kind of 'if' situations...

=LOOKUP(A1,{0,"";3.2,"cum laude";3.5,"magna cum laude";3.8,"summa cum laude"})

where A1 houses a GPA value.
 
Upvote 0
Try this Dion

=IF(A1>=3.8,"Summa Cum Laude",IF(a1.=3.5, "Magna Cum Laude", IF(A1>=3.2,"Cum Laude","")))

This will return a blank if the GPA is less than 3.2
 
Upvote 0

Forum statistics

Threads
1,221,788
Messages
6,161,963
Members
451,734
Latest member
Adapt375

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top