Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy cell from every nth row

I'd like to grab the names in every person's name from this google spreadsheet and put it into a new column. The names will be every nth row.

get every nth row in google spreadsheet

like image 406
tim peterson Avatar asked Aug 01 '15 10:08

tim peterson


People also ask

How do I select every third row in Excel?

Select Every nth Row To get the every 3rd (nth) row, we change the number to divide by to 3 (n). We can switch the filter on to filter on the MOD result required to show specific rows.

How do you copy a formula in Excel with every row?

Simply do the following: Select the cell with the formula and the adjacent cells you want to fill. Click Home > Fill, and choose either Down, Right, Up, or Left. Keyboard shortcut: You can also press Ctrl+D to fill the formula down in a column, or Ctrl+R to fill the formula to the right in a row.


2 Answers

Alternatively, also try:

=filter(A2:A, mod(row(A2:A)+1,3)=0)
like image 75
JPV Avatar answered Sep 20 '22 04:09

JPV


In B2 please try:

=offset(A$1,3*(row()-1)-2,)  

As the formula is copied down the offset row relative to A1 increases by three, with no column offset. In the second (starting row) 3*(2-1)-2 is 1 so the A2 value is returned. In the second output row 3*(3-1)-2 returns 4, so the A5 value is returned, and so on.

like image 45
pnuts Avatar answered Sep 22 '22 04:09

pnuts