ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct (https://www.excelbanter.com/excel-worksheet-functions/131667-re-sumproduct.html)

Mike

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.




All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com