Filter Nth cell based on separate set

Ronderbecke

Board Regular
Joined
Oct 4, 2017
Messages
73
I was trying to query every Nth row for a long time and was able to make it work using filter which is great, but I cannot seem to make it work based on another cell (similar to query where you say if col1 is not null) Here is the formula that works just fine:

=filter('Stephen Sharman'!D2:D, (MOD(ROW('Stephen Sharman'!D2:D)-Row('Stephen Sharman'!D2)+1,12)=1))

The issue I run into is making it not display anything if 'Stephen Sharman'!C1:C is blank. I tried:

=filter(IF('Stephen Sharman'!C1:C>0,'Stephen Sharman'!D2:D,""), (MOD(ROW('Stephen Sharman'!D2:D)-Row('Stephen Sharman'!D2)+1,12)=1))

and varios versions of referencing to C1:C but they all give the same message:
FILTER has mismatched range sizes. Expected row count: 1000. column count: 1. Actual row count: 999, column count: 1

Is there a way to make the offset of D2 to C1 and D14 to C13 etc work?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

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