Adding letters instead of numbers

M

mits

hi

ive got a column with grades ranging from A-G. i am trying to find out how
many A-C grades there are. ive used the following formula but its not working.

=COUNTIF(enla,OR("A","B","C"))

where enla is my named range.

any help appreciated.
 
A

Ashish Mathur

Hi,

You may use this formula. Also, please post a question in a new thread

=SUM(COUNTIF(enla,{"A","B","C"}))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
M

mits

Thanks, that's perfect!

What if i wanted to break this down further and wanted to see how many males
got A-C grades. I think i'd have to use sumproduct, but don't know how to
compose this. Could you help?

many thanks
 
J

Jacob Skaria

"m" for male..

=SUMPRODUCT((A1:A100={"a","b","c"})*(B1:B100="m"))

If this post helps click Yes
 
J

Jacob Skaria

Please ignore the previous post...Try the below

=SUMPRODUCT(--(B1:B100="m"),--ISNUMBER(MATCH(A1:A100,{"a","b","c"},0)))

If this post helps click Yes
 
M

mits

WOW! Thank you so much - you have saved me hours of work!

really really appreciate it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top