sqlserver中将多列

Too much data in a single column can make your Microsoft Excel spreadsheet harder to read. To improve it, you should consider splitting up your column using the “Text to Columns” or “Flash Fill” features.

单列中的数据过多会使您的Microsoft Excel电子表格难以阅读。 为了改进它,您应该考虑使用“文本到列”或“快速填充”功能拆分列。

“Text to Columns” will replace your single column with multiple columns using the same data. “Flash Fill” will replicate the data, splitting it into new, individual columns while leaving the original column intact.

“文本到列”将使用相同的数据将您的单个列替换为多个列。 “ Flash Fill”将复制数据,将其拆分为新的单个列,同时保持原始列不变。

如何在Excel中使用文本到列 (How to Use Text to Columns in Excel)

Microsoft Excel includes a special feature that allows you to split up extra long columns. It does this by separating columns using delimiters, like commas or semicolons, which split up the data.

Microsoft Excel包含一项特殊功能,可让您拆分额外的长列。 它通过使用分隔符(例如逗号或分号)分隔列来完成此操作,分隔符用于分隔数据。

The feature works by using Text to Columns, which you can access from the “Data” tab in your Microsoft Excel ribbon bar.

该功能通过使用“ 文本到列”来工作 ,您可以从Microsoft Excel功能区栏中的“数据”选项卡中访问它。

To test this feature, we’ll be using a set of data (an employee list, showing names, dates of birth, and other information) in a single column. Each section of data is in a single cell, separated by a semicolon.

为了测试此功能,我们将在单个列中使用一组数据(员工列表,显示姓名,出生日期和其他信息)。 数据的每个部分位于单个单元格中,以分号分隔。

You’ll need to select the cells containing your data first (cells A1 to A12 in the example above).

您需要首先选择包含数据的单元格(在上面的示例中,单元格A1至A12)。

From Excel’s “Data” tab, click the “Text to Columns” button found in the “Data Tools” section.

从Excel的“数据”选项卡中,单击“数据工具”部分中的“文本到列”按钮。

This will bring up the “Convert Text to Columns Wizard” window and allows you to begin separating your data. From the options, select the “Delimited” radio button and click “Next” to continue.

这将打开“将文本转换为列向导”窗口,并允许您开始分离数据。 从选项中,选择“定界”单选按钮,然后单击“下一步”继续。

By default, Excel will choose to try and separate your single column data by each tab it finds. This is fine, but for our example, we’re using data that’s separated by semicolons.

默认情况下,Excel将选择尝试通过找到的每个选项卡来分隔单列数据。 很好,但是对于我们的示例,我们使用的是用分号分隔的数据。

Choose your delimiter option from the side menu. For our example, our chosen delimiter is a semicolon.

从侧面菜单中选择定界符选项。 对于我们的示例,我们选择的定界符是分号。

You can see how the converted data will look in the “Data Preview” section at the bottom of the menu.

您可以在菜单底部的“数据预览”部分中查看转换后的数据的外观。

Once you’re ready, click “Next” to continue.

准备就绪后,单击“下一步”继续。

You’ll now need to set the cell types for each column. For instance, if you have a column with dates, you can set the appropriate date format for that column. By default, each column will be set to the “General” setting.

现在,您需要为每列设置单元格类型。 例如,如果您有一列带有日期的列,则可以为该列设置适当的日期格式。 默认情况下,每列将设置为“常规”设置。

Using this option, Excel will attempt to set the data type for each column automatically. To set these manually, click on your column in the “Data Preview” section first. From there, select the appropriate data type from the “Column Data Format” section.

使用此选项,Excel将尝试自动设置每一列的数据类型。 要手动设置这些设置,请首先单击“数据预览”部分中的列。 在此处,从“列数据格式”部分中选择适当的数据类型。

If you want to skip a column completely, select your column, then choose the “Do Not Import Column (Skip)” option. Click “Finish” to begin the conversion.

如果要完全跳过一列,请选择您的列,然后选择“不导入列(跳过)”选项。 单击“完成”开始转换。

Your single column will separate each section, using the delimiters, into individual columns using the cell formatting options you selected.

您的单列将使用定界符将每个部分使用选定的单元格格式设置分隔为单独的列。

如何在Excel中使用Flash Fill (How to Use Flash Fill in Excel)

If you’d like to keep your original data intact, but still separate the data, you can use the “Flash Fill” feature instead.

如果您希望保持原始数据不变,但仍将数据分开,则可以使用“ Flash Fill”功能。

Using our employee list example, we have a single column (column A) header row, with a semicolon delimiter separating each bit of data.

使用我们的员工列表示例,我们有一个单列(A列)标题行,并用分号分隔符分隔数据的每一位。

To use the “Flash Fill” feature, start by typing out the column headers in row 1. For our example, “Employee ID” would go in cell B1, “First Name” in cell C1, etc.

要使用“ Flash Fill”功能,请首先在第1行中键入列标题。对于我们的示例,“ Employee ID”将在单元格B1中,“ First Name”将在单元格C1中,等等。

For each column, select your header row. Start with B1 (the “Employee ID” header in this example) and then, in the “Data Tools” section of the “Data” tab, click the “Flash Fill” button.

对于每一列,选择标题行。 以B1(在此示例中为“ Employee ID”标题)开头,然后在“数据”选项卡的“数据工具”部分中,单击“ Flash Fill”按钮。

Repeat the action for each of your header cells (C1, D1, etc) to automatically fill the new columns with the matching data.

对每个标题单元格(C1,D1等)重复该操作,以自动用匹配的数据填充新列。

If the data is formatted correctly in your original column, Excel will automatically separate the content using the original header cell (A1) as its guide. If you receive an error, type the following value in the sequence in the cell below your header cell, then click the “Flash Fill” button again.

如果原始列中的数据格式正确,则Excel将使用原始标题单元格(A1)作为指南自动分离内容。 如果收到错误,请在标题单元格下面的单元格中按顺序键入以下值,然后再次单击“ Flash Fill”按钮。

In our example, that would be the first data example in cell B2 (“101”) after the header cell in B1 (“Employee ID”).

在我们的示例中,这将是B1中标头单元格(“员工ID”)之后单元格B2(“ 1​​01”)中的第一个数据示例。

Each new column will fill with the data from the original column, using the initial first or second rows as the guide to choose the correct data.

每个新列将使用原始第一行或第二行作为选择正确数据的指南来填充原始列中的数据。

In the example above, the long column (column A) has been separated into six new columns (B to G).

在上面的示例中,长列(A列)已分为六个新列(B至G)。

Because the layout of rows 1 to 12 is the same, the “Flash Fill” feature is able to copy and separate the data, using the header row and first bit of data.

由于行1至12的布局相同,因此“闪存填充”功能可以使用标题行和数据的第一位来复制和分离数据。

翻译自: https://www.howtogeek.com/450927/how-to-make-one-long-column-into-multiple-columns-in-excel/

sqlserver中将多列

sqlserver中将多列_如何在Excel中将一个长列变成多个列相关推荐

  1. 经纬度换算数值_如何在Excel中将经纬度数值转换成度分秒

    很多时候GPS上边显示地理坐标不是十进制的,而是度分秒形式,必须转换成十进制才能导入Arcgis等作图软件.而有很多网友也在咨询,excel中怎么将经纬度数值转换成度分秒,或者反转将度分秒如何转成数值 ...

  2. word怎么打印网格线_如何在Excel中打印网格线以及行标题和列标题

    word怎么打印网格线 Gridlines and the row and column headings can be helpful when viewing data on worksheets ...

  3. python数据框添加新列_如何在Python中将新列添加到现有数据框?

    数据框是一种二维数据结构,其中数据以表格格式存储,以行和列的形式. 它可以可视化为SQL数据表或excel工作表表示形式.可以使用以下构造函数创建它-pd.Dataframe(data, index, ...

  4. 在excel日期比对大小_如何在Excel中防止分组日期

    在excel日期比对大小 As a teenager, group dates can be fun. If you have strict parents, that might be the on ...

  5. ddmmyy日期格式是多少_如何在Excel 2013/2016/2019中将mmddyyyy文本转换为普通日期格式...

    本文将讲述如何将非标准日期格式或文本转换为Excel中的标准日期.如果您的日期为mmddyy文本格式,并且您希望使用Excel公式将其更改为mm / dd / yyyy的正常日期格式.如何在Excel ...

  6. java中将查询数据导出_如何在R中将数据框导出到Excel

    java中将查询数据导出 What if I tell, that you can export data frames to excel in R within a couple of minute ...

  7. Microsoft Excel 教程:如何在 Excel 中将文本拆分为不同的列?

    欢迎观看 Microsoft Excel 教程,小编带大家学习 Microsoft Excel 的使用技巧,了解如何在 Excel 中使用"文本分列向导 "将文本拆分为不同的列. ...

  8. excel设置行高等于列宽_如何在Excel中设置行高和列宽

    excel设置行高等于列宽 By default, when you create a new workbook in Excel, the row height and column width i ...

  9. excel表格怎么调整行高和列宽_如何在Excel中竖向批量插入图片,这个简单方法你知道吗...

    酌酒与君君自宽,人情翻覆似波澜.白首相知犹按剑,朱门先达笑弹冠.草色全经细雨湿,花枝欲动春风寒.世事浮云何足问,不如高卧且加餐. --[唐]王维<酌酒与裴迪> 不知道大家有没有遇到过这种情 ...

最新文章

  1. 【二分答案】【最短路】bzoj1614 [Usaco2007 Jan]Telephone Lines架设电话线
  2. 7216:Minecraft
  3. linux command find
  4. c语言用数组发送大写字母怎么读,c语言字符数组大小写转换
  5. flink shell的local模式(benv与senv的使用+处理报错的解决方案)
  6. php面试题2018
  7. 工业交换机和商用交换机对比
  8. ide在控制台输入编译命令_快速编译调试 Redis
  9. 记录一个奇葩问题 宝塔 nginx: [warn] conflicting server
  10. windows下使用cmake+mingw配置makefile(1)
  11. qpsk的映射过程_FPGA数字信号处理(28)QPSK星座映射与解映射
  12. 开发者开源软件商业模式
  13. Nginx 配置生成自签证书
  14. centos7 docker安装_Docker安装运行并连接Centos7容器
  15. C语言编写游戏的程序教程,如何运用C语言编写搬山游戏
  16. 轻松复制百度文库内容
  17. (绿色)修正版gooflow流程解决方案(源码分享+在线演示+UI地址下载)
  18. 云计算与大数据——云计算的特点
  19. 案例分析:从误删除数据库血案看数据库系统的安全设计
  20. C++ 提取代码中的函数

热门文章

  1. 没有 TPM 芯片,安装原版 Windows 11【图解】
  2. 关于图片数字读取的识别
  3. 电信aep平台是什么意思_5G能给双创带来什么?技术赋能产业升级和双创舞台
  4. Springboot+mysql在线学习交流平台-计算机毕业设计源码46186
  5. Improving the Robustness of Question Answering Systems to Question Paraphrasing
  6. 1988汉城奥运会歌曲《HIn Hand》铃声 1988汉城奥运会歌曲《HI...
  7. NVIDIA中文车牌识别系列-1” 在Jetson上用DeepStream识别中文车牌
  8. 软光栅个人项目介绍,编写思路及后期整理
  9. Android点九图注意事项
  10. 新库上线 | CnOpenData欧洲专利局专利数据