# Referencing data from a row in a grid

#### Josiah

##### Board Regular
I have a row of data that is 128 columns wide (AZ5:FW5). I want to use that data in a grid 4 columns by 32 rows so that:

H5=AZ5, I5=BA5, J5=BB5, K5=BC5
H6=BD5, I6=BE5, J6=BF5, K6=BG5
...
...
...
and so on all the way down to H36 - K36

Is there a quick and easy way to do this without copying the data row by row?

(I probably could have already had it done by the time I typed this but it's the principle of the matter! )

### Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Josiah,

In H5 use... =OFFSET(AZ\$5,0,(ROWS(H\$5:H5)-1)*4)

Drag to K5 then drag all 4 down to row 36

If you then want hard values rather than formulas in H5:K36 then select H5:K36 and do Copy / Paste Special ? Values

Hope that helps.

Josiah,

In H5 use... =OFFSET(AZ\$5,0,(ROWS(H\$5:H5)-1)*4)

Drag to K5 then drag all 4 down to row 36

If you then want hard values rather than formulas in H5:K36 then select H5:K36 and do Copy / Paste Special ? Values

Hope that helps.

Thanks! That's perfect just like it is!

You are welcome.

It probably does not matter in your instance but you could use the below alternative if there was need to avoid using the 'volatile' OFFSET function.

=INDEX(\$AZ\$5:\$FW\$5,1,((ROWS(H\$5:H5)-1)*4)+COLUMNS(\$H5:H5))

Replies
2
Views
201
Replies
3
Views
348
Replies
2
Views
363
Replies
1
Views
248
Replies
2
Views
247

1,196,308
Messages
6,014,572
Members
441,828
Latest member
cofracr

### 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.

### Which adblocker are you using?

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

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