Sumproduct - Non Adjacent Cells

cshetty

Board Regular
Joined
Apr 15, 2017
Messages
76
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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,215,131
Messages
6,123,222
Members
449,091
Latest member
jeremy_bp001

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