Thread: Sumproduct
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike Mike is offline
external usenet poster
 
Posts: 3,101
Default Sumproduct

Thanks Toppers, works perfectly and a lot simpler. Despite that I'm still
pleased at getting it to work in the first place!!

"Toppers" wrote:

try:

=SUMPRODUCT(--(W2:W31="TS")*(Y2:Y31={"B","D"}))

"Mike" wrote:

=SUMPRODUCT(--(W2:W31="TS"), --(Y2:Y31="B"))+SUMPRODUCT(--(W2:W31="TS"),
--(Y2:Y31="D"))

After trawling the pages of Messr's Mcgimpsy and Pearson and others the
fromula above works perfectly but I can't believe it needs to be that
complicated.

Simply it looks for occurences of TS in Col W2 - W31 and if there is a
corresponding value of B or D in column X it counts it. Please tell me that
it can be simplified.