Sumproduct - Non Adjacent Cells

cshetty

Board Regular
Joined
Apr 15, 2017
Messages
78
Office Version
  1. 2016
Platform
  1. Windows
Dear Experts

Please help me with this formula to sum non adjacent cells based on criteria.

=SUMPRODUCT(((Schedule!$M$5:$M$2316),(Schedule!$O$5:$O$2316))*(Schedule!$D$5:$D$2316>=$B4)*(Schedule!$D$5:$D$2316<=EOMONTH($B4,0))*(Schedule!$G$5:$G$2316=P$3))

Getting #Value error.

Thanks in advance.
 
Glad we could help & thanks for the feedback.
 
Upvote 0

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.
Dear Fluff

This is it. Thanks mate.
Good news. Since I was on about removing parentheses before, there are a few that could be removed from that formula too if you want 😎

=SUMPRODUCT(((Schedule!$M$5:$M$2316)+(Schedule!$O$5:$O$2316))*(Schedule!$D$5:$D$2316>=$B4)*(Schedule!$D$5:$D$2316<=EOMONTH($B4,0))*(Schedule!$G$5:$G$2316=P$3))
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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