ホームページ > トピック > excel > Googleシートでデータを転置する2つの最も簡単な方法

Googleシートでデータを転置する2つの最も簡単な方法

William Shakespeare
リリース: 2025-03-23 09:47:12
オリジナル
864 人が閲覧しました

Do you think your Google Sheets table will do better if you switch columns and rows? Well, you've come to the right place then :) Today, we'll transpose!

Transpose in Google Sheets means converting your vertical table into a horizontal one (as well as horizontal into vertical). In other words, it's when you switch rows and columns in Google Sheets.

There are two ways to convert rows to columns in Google Sheets (and columns to rows as well).

Use Google Sheets menus to transpose rows to columns & vice versa

  1. Select the data you want to transpose in Google Sheets (I mean, switch rows and columns) and copy it to the clipboard.

    Note. Make sure to select headers as well.

    Tip. You can copy the data by pressing Ctrl+C on your keyboard or using the related option from the context menu:

    Googleシートでデータを転置する2つの最も簡単な方法

  2. Create a new sheet (or pick any other place for your future new table) and select its leftmost cell.
  3. Right-click that leftmost cell and choose Paste special > Transposed from the context menu:

    Googleシートでデータを転置する2つの最も簡単な方法

The range you copied will be inserted but you'll see that Google Sheets transposed columns into rows:

Googleシートでデータを転置する2つの最も簡単な方法

Tip. If your Google Sheets table is of rows that you need to rotate to columns, the way above will work the same way. In both cases, Google Sheets rotates rows to columns & columns to rows at the same time.

Google Sheets TRANSPOSE function

You won't be surprised if I tell you there's a Google Sheets function specifically for this purpose, will you? It's called TRANSPOSE and it takes just the data you need to convert :)

Here, I put the cursor into a cell where my future table will start — A9 — and enter the following formula there:

=TRANSPOSE(A1:E7)

A1:E7 is a range with my original table. 

A9 — the cell with the Google Sheets TRANSPOSE — becomes the leftmost cell of my new table where rows and columns switch places:

Googleシートでデータを転置する2つの最も簡単な方法

The main advantage of this method is that once you alter the data in your original table, the values will change in the transposed table as well.

The first method, on the other hand, kind of creates a "photo" of the original table in its one state.

No matter the way you choose, both of them deliver you from manual copy-pasting of rows/columns one by one. So feel free to use the one you like the most. 

I hope now you know a little bit more about how to easily switch rows and columns in Google Sheets. BTW, which method do you prefer?

以上がGoogleシートでデータを転置する2つの最も簡単な方法の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のチュートリアル
詳細>
関連するチュートリアル
人気のおすすめ
最新のコース
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート