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
 

Some videos you may like

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,406
Try...

=SUMPRODUCT(--(SupplySummary!$AT$4:$AT$504="No"),SupplySummary!$C$4:$C$504,SupplySummary!L$4:L$504)
 

PeregrinTook

Board Regular
Joined
Feb 9, 2006
Messages
157
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
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,406

Watch MrExcel Video

Forum statistics

Threads
1,122,964
Messages
5,599,069
Members
414,281
Latest member
Engjamal2021

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
Top