将多个Excel列拆分为行 [英] Split multiple excel columns into rows

查看:62
本文介绍了将多个Excel列拆分为行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个电子表格,其中包含以下数据:

I have a spreadsheet with data like this:

98929     11.38      3.39      9.10
98930     15.24      2.86      7.05

每个值在单独的列中.我需要这样显示:

Each value is in a separate column. I need it to display like this:

98929     11.38
          3.39
          9.10
98930     15.24
          2.86
          7.05

这可能吗?

推荐答案

有一个TRANSPOSE数组函数可用于转置数据,但是对于大多数情况,我发现使用copy-> paste-special-> transpose更为容易.

There is a TRANSPOSE array function that can be used transpose data, but for most scenarios I find it easier to use copy->paste-special->transpose.

根据所需的数据结构,使用数据透视表可能是一种比较简单的数据重塑方法.假设以下数据结构

Based on the data structure you want, using a pivot table might be a relatively easy way to reshape the data. Assuming the following data structure

Key       a       b       c
98929   11.38   3.39    9.1
98930   12.38   4.39    10.1
98931   13.38   5.39    11.1

根据您的数据添加数据透视表,并

Add a pivot table based on your data and

  1. 在行部分添加键"
  2. 在值部分添加"a","b","c"(等)
  3. 将值"条目(即求和符号)移至行部分
  4. 关闭小计,总计,并使用表格"布局

这是一张图片,如果上面的文字不清楚.

Here's a picture, if the text above isn't clear.

这将在某种程度上取决于您的Excel版本,但是在功能区中,单击设计"选项卡并选择数据透视表,然后在上方的小计和总计选项下选择不显示"左上角,然后选择报表布局"下的表格"选项.

It will depend a little on your version of Excel, but in the Ribbon, click on the 'Design' tab with the pivot table selected, and chose 'Do not show' under both the subtotals and grand totals options in the upper left hand corner, and select the 'Tabular' option under Report layout.

这篇关于将多个Excel列拆分为行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆