ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Do I need SUMPRODUCT? (https://www.excelbanter.com/excel-worksheet-functions/118289-do-i-need-sumproduct.html)

DaveMoore

Do I need SUMPRODUCT?
 
The following is a formula I am using that totals a range meeting a
single criteria.

=SUMIF(D2:D254,D507,E2:E254)

However, I now want to give an additional condition; that is
(F2:F254) = ""

I think I want SUMPRODUCT but I am not sure how to use it?
Can anyone help?
My thanks to those who can.

Dave Moore


DaveMoore

Do I need SUMPRODUCT?
 

Got it!

=SUMPRODUCT(($D$2:$D502=D507)*($F$2:$F502="")*($E$ 2:$E502))

works for me.

Are there any shorter versions?


Arvi Laanemets

Do I need SUMPRODUCT?
 
Hi

Not shorter, but this one may give you some gain in speed, when you have a
lot of such formulas

=SUMPRODUCT(--($D$2:$D502=D507),--($F$2:$F502=""),($E$2:$E502))


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"DaveMoore" wrote in message
oups.com...

Got it!

=SUMPRODUCT(($D$2:$D502=D507)*($F$2:$F502="")*($E$ 2:$E502))

works for me.

Are there any shorter versions?




Teethless mama

Do I need SUMPRODUCT?
 
SUM(($D$2:$D502=D507)*($F$2:$F502="")*($E$2:$E502) )

Fewer key stroke than sumproduct
ctrlshift enter (not just enter)


"DaveMoore" wrote:


Got it!

=SUMPRODUCT(($D$2:$D502=D507)*($F$2:$F502="")*($E$ 2:$E502))

works for me.

Are there any shorter versions?




All times are GMT +1. The time now is 01:41 AM.

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