It's simple. INDEX doesn't care if your data is laid out in a column (a vertical range) or in a row (a horizontal range). Or if it's both in rows AND columns, i.e., a 2-dimensional (rectangular) range. Just give it the appropriate cell reference (e.g., A1:A6, A1:F1, A1:D3).