View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Allllen Allllen is offline
external usenet poster
 
Posts: 341
Default how to count a column based on condition of another column

Hi David,

This is something I need to learn.
Why does it work with the --?
Isn't that like a double negative? Why doesn't it work without it?
Where can I find out more about this?

thanks for your help
--
Allllen


"David Billigmeier" wrote:

=SUMPRODUCT(--(L10:L93="Tabriz"),--(E10:E93="A"))

--
Regards,
Dave


"R Khoshravan" wrote:

Column E: class of doctors. Includes A,B,C
Column L: residing city of doctors

I want to count number of doctors with class A in a specified city.
I thought the following formula will work:
IF(L10:L93="Tabriz",COUNTIF(E10:E93,"A"),) but it didn't.
Basically I am looking for a foormula to count a cloumn when a condition is
met in another column.
How can I write this formula?