SUMPRODUCT of two columns if third column matches condition

PeregrinTook

Board Regular
Joined
Feb 9, 2006
Messages
157
Hey all,

Having a mind-blank and can't get this formula to work - hope someone here can help please!

I need to look up a large table and get the sumproduct of (Cartons x KG/Carton) where 'Deleted'=No.

The following worked perfectly before I needed to introduce the conditional check on Deleted status:

=SUMPRODUCT(SupplySummary!$C$4:$C$504,SupplySummary!L$4:L$504)

Where Col C is KG/Carton & Col L is Cartons.

I have tried many combinations of adding in SupplySummary!$AT$4:$AT$504="No" but just can't get it to work.

Can someone please help me with the structure for this scenario?

Many thanks
PT
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try...

=SUMPRODUCT(--(SupplySummary!$AT$4:$AT$504="No"),SupplySummary!$C$4:$C$504,SupplySummary!L$4:L$504)
 
Upvote 0
Beautiful Domenic - many thanks!

Can you explain exactly what the '--' does before the conditional check please? Should this be the format for all conditional checks - ie:

sumproduct(--(check),--(check),--(check),colToSum1,colToSum2)?

Just wondering for future reference...

Cheers v much
PT
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,013
Members
448,935
Latest member
ijat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top