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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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