MOD ROW REFERENCING CRITERIA

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
237
Office Version
  1. 2021
Platform
  1. Windows
Hi all,
I am endeavouring to sum every nth row where it matches a criteria in another column.
I have tried the following formula with the result #N/A.
=SUMPRODUCT((MOD(ROW(D3:D19)-3,3)=0)*(C2:C19="CBD"),(D3:D19))
I was hoping that it would sum the amount in every THIRD row in column D where it matched the criteria in column C "CBD"
Attach worksheet example.
Any assistance would be greatly appreciated.
Cheers,
Dave.

mod row criteria.xlsx
G
10
Sheet1
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You need the same range, everywhere in your formula (so close!;))

=SUMPRODUCT((MOD(ROW(D3:D19)-3,3)=0)*(C3:C19="CBD"),(D3:D19))
 
Upvote 0
Solution
Hi Jec,
Thanks for the suggestion, however it returns ZERO.
Any thoughts?
 
Upvote 0
Hi Again,
Solved, I need the "CBD" to be in every 3rd row, where as I had it in the previous row to the $.
Thanks again, your reply prompted me to look further when it returned zero.
Cheers,
Dave.
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,252
Members
453,028
Latest member
letswriteafairytale

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