View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Lise Lise is offline
external usenet poster
 
Posts: 102
Default Count across multiple columns, using specific criteria

Yippee - This one was driving me mad so went scrolling and found this answer
- Fabulous thanks, exactly what I was after - works a treat. One further
Question I now have (as can use this elsewhere) I have written the following:
=SUMPRODUCT(--('Q3'!$C$2:$C$117="Stage"),--('Q3'!$H$2:$H$117="**-Hazard"))

I have the **- as wildcards - this is because in that column there are
various areas listed with Hazard following an area ie WG-Hazard - I want to
ignore the areas and just count Hazard

Hope this makes sense

--
Thanks as always


"Toppers" wrote:

Try:

=SUMPRODUCT(--(G$3:G$370),--($E$3:$E$37=$F68))

The '--' converts TRUE/FALSE to 1/0

HTH

"MMcQ" wrote:

I am using Microsoft Excel 2003.

What I am trying to do is count values in column g (as long as greater than
0), if a specific value is held in column e

Both formula work in their own right, but when I put them together, it is
missing out on counting only if the value is greater in g

=(COUNTIF($E$3:$E$37,$F68))*AND(COUNTIF(G$3:G$37," 0"))

Can anyone tell me where I'm going wrong