how can i use excel to count how many A's, how many B's my students got in their exam?

column A is for students' name column B,D,F,H are for their marks for each subject column c,E,G,I are for their grades depending on the marks

so how can i make excel counts the grades that they got?

for example: if a student marks are as below :

john : mate A science C bio B Literature A

so i want excel to display "2A1B1C" in a cell. how can i do that? what formula should i use? thanks in advance


Use the following formula:
This formula tests if the count is 0 it will remove the letter, if the count is >0 it will write it.

If you don't mind to have 0A4B0C the formula is:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.