function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
khushi Yadavkhushi Yadav 

How to calculate Grade : if (Total marks=Range(90-80, 'A')

Khan AnasKhan Anas (Salesforce Developers) 
Hi Khushi,

Greetings to you!

You can create a formula field. Use below formula, kindly modify it as per your requirement.
 
IF( Marks__c >= 90 && Marks__c <= 100, "A",
IF( Marks__c >= 80 && Marks__c <= 89, "B",
IF( Marks__c >= 70 && Marks__c <= 79, "C",
"D")))

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas