Index Query not working

Ronderbecke

Board Regular
Joined
Oct 4, 2017
Messages
54
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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,235
Office Version
  1. 365
Platform
  1. Windows
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!
 

Ronderbecke

Board Regular
Joined
Oct 4, 2017
Messages
54
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?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,626
Messages
5,838,438
Members
430,548
Latest member
hh_dh2001

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
Top