52

I'm trying to figure out how to have the entire contents of a column in one sheet show in another sheet.

For example I have column D in sheet2 that I want to show in column A of sheet1. Something like:

=ARRAYFORMULA(Sheet2!D)

But that gives me a syntax error.

Maxime Pacary
  • 22,336
  • 11
  • 85
  • 113
JuggaloBrotha
  • 535
  • 1
  • 5
  • 6

4 Answers4

87

Use:

=ArrayFormula('Sheet2'!D:D)

AdamL
  • 23,691
  • 6
  • 68
  • 59
13

If you want to share columns across separate files, you can use:

=importrange("17s-yYzX8GYvyA2PorY2PLaZ5OpFi14wU0ugAyTIrL24","Sheet1!G:J")

where the first string is the key of the sheet file that you want to import from. You can copy that directly from the URL e.g. https://docs.google.com/spreadsheets/d/17s-yYzX8GYvyA2PorY2PLaZ5OpFi14wU0ugAyTIrL24/edit#gid=0. The second string is the name of the sheet in the source file and in the example G:J means import columns G through J.

David Clarke
  • 12,888
  • 9
  • 86
  • 116
7
={'Sheet2'!X:X}

Needs single-quotes around the sheet name.

ross
  • 2,684
  • 2
  • 13
  • 22
5

More info

Both two formulas display the column like a Row, it "Transpose" the group of cells.

- ArrayFormula('Sheet'!X:X)
- Importrange("sheetkey","nameSheet!x:x")

But this beatifull formula copy the column without changing the direction.

- {Sheet2!X:X}