Calculate sumproduct for block of rows in a column based on a condition.

Ranjith_SP

New Member
Joined
Sep 29, 2021
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hi,
i have 4 columns.
ColumnA has multiple row blocks each having row ID from 1 to any value.
i want to display sumproduct for columnB and ColumnC in ColumnD for each row block when ColumnA is equal to 1.
Please help.

Thanks for any help!!!
 

Attachments

  • Capture.PNG
    Capture.PNG
    19.3 KB · Views: 8

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to Mr Excel forum

Maybe something like this

Pasta2
ABCD
1Column AColumn BColumn CResult
211010900
321010 
431010 
541010 
651010 
761010 
871010 
981010 
1091010 
11110101000
1221010 
1331010 
1441010 
1551010 
1661010 
1771010 
1881010 
1991010 
20101010 
2111010800
2221010 
2331010 
2441010 
2551010 
2661010 
2771010 
2881010 
29
Plan3
Cell Formulas
RangeFormula
D2:D28D2=IF(A2=1,SUMPRODUCT(B2:B$100,C2:C$100)-SUM(D3:D$100),"")


M.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,957
Latest member
Hat4Life

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