SUM every NTH ROW MEETING 2 CRITERIA

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
237
Office Version
  1. 2021
Platform
  1. Windows
Hi All,
I have a formula and need to adjust it so it will meet 2 criteria.
Searching the net and trying variations with my level of expertise, has been to no avail, I would greatly appreciate any assistance.
I apologise, I would have attached a mini sheet but I am still trying to work out the installation issue since upgrading.

=SUMPRODUCT((MOD(ROW(S70:S333)-70,6)=0)*(J70:J333="CBD"),(S70:S333))

I need the formula to also include that it only SUM cells that have a positive figure.
Cheers,
Dave.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Good to hear you solved the problem.

If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0
Good to hear you solved the problem.

If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
Thanks for the heads up.
Will do so in the future.
 
Upvote 0
I'm not sure what might happen with your worksheet in the future, but if any rows are added/deleted above row 70 the formula will likely return incorrect results. If that is any possibility you could make the formula more robust like this.

Excel Formula:
=SUMPRODUCT((MOD(ROW(S70:S333)-ROW(S70),6)=0)*(J70:J333="CBD")*(S70:S333>0)*(S70:S333))
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,222
Members
453,024
Latest member
Wingit77

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