Index Query not working

Ronderbecke

Board Regular
Joined
Oct 4, 2017
Messages
73
I have a formula to query every 12th line using the index function. For some reason it is pulling every single line rather than every 12th line? I cannot seem to make the every 12th line work on it? Why does it pull every individual line?

=Query(INDEX('Jason Smith'!$C$1:$C,(ROWS('Jason Smith'!C1)-1)*12,0))

Thank you so much for the help.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Let's say that you're going to enter the formula in B2 and copy it down the column. Try..

Code:
B2, copied down:

=Query(INDEX('Jason Smith'!$C:$C,ROWS($B$2:$B2)*12-12+1))

...which will reference the following...

Code:
'Jason Smith'!C1
'Jason Smith'!C13
'Jason Smith'!C25
'etc
'
'

Hope this helps!
 
Upvote 0
Hey Domenic,

I apologize if this posts twice but for some reason it didn't update on my computer for the post. I was hoping to use query to make it "auto populate" the cells and continue to do so as more were input (essentially pull C1:C10000 but only pull every 12th cell and continue to pull as they populate). Is that possible? I have tried multiple functions and I seem to do great with Query except I cannot make it only pull every nth cell?
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,652
Members
448,975
Latest member
sweeberry

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