View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default Adding letters instead of numbers

"m" for male..

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

If this post helps click Yes
---------------
Jacob Skaria


"mits" wrote:

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


"Jacob Skaria" wrote:

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

If this post helps click Yes
---------------
Jacob Skaria


"mits" wrote:

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.