简体   繁体   English

在 Excel 中使用文本导入向导复制矩阵

[英]Copying matrix using text import wizard in Excel

I am copying some values from Maple software.我正在从 Maple 软件中复制一些值。 It will give the values as [[1,2,3,4],[2,3,4,5],[3,4,5,6]] This has to be copied in excel as它将给出值为 [[1,2,3,4],[2,3,4,5],[3,4,5,6]] 这必须在 excel 中复制为

[[1    2    3    4]
[2    3    4    5]
[3    4    5    6]]

So we can replace [ and ] easily.所以我们可以很容易地替换 [ 和 ]。 I tried text import wizard with delimiter ','.我尝试了带有分隔符“,”的文本导入向导。 It is displaying like this:它显示如下:

   [[1    2    3    4]    [2    3    4    5]    [3    4    5    6]]

All rows are appearing in a single row.所有行都出现在一行中。 How to get the required format?如何获得所需的格式?

Use notepad++, paste the above text.使用notepad++,粘贴上面的文字。 replace all "[" with "\n".将所有“[”替换为“\n”。 and replace "]" with "" (nothing).并将“]”替换为“”(无)。

Then copy all & paste in excel, with "," as delimiter.然后全部复制并粘贴到 excel 中,用“,”作为分隔符。 (: (:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Excel | 简单问题 - 文本导入向导 - Excel | Simple Question - Text Import Wizard 通过代码使用excel导入向导? - Using excel import wizard through code? 将CSV导入Excel:导入向导无法识别文本限定符,但直接在Excel中打开将转换为科学计数法 - Importing CSV into Excel: import wizard fails to recognize text qualifier but opening directly in Excel converts to scientific notation PHP导出为CSV并在excel中打开,而无需使用文本导入向导 - PHP export to CSV & open in excel without having to use text import wizard 当记录在宏中时,Excel的剪贴板文本导入向导不会复制分隔格式 - Excel's clipboard Text Import Wizard does not replicate delimited format when recorded in a Macro 将距离矩阵作为矩阵从R复制到Excel - Copying distance matrix as a matrix into excel from R 使用SQL Server导入和导出向导中的SQL语句使用Excel中的数据更新数据库 - Update database using data from Excel using SQL statement in SQL Server Import and Export Wizard 为什么我在 SQL Server 中使用向导导入时 Excel 中的数据不一样? - Why my data in Excel is not the same when I import using wizard in SQL Server? 使用向导从Excel导入日期格式到MS SQL Server Mgmt - import date format from excel to MS SQL Server Mgmt using wizard 如何使用 Excel 的默认导入向导导入 plot csv 数据? - How do I plot csv data imported using Excel's default import wizard?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM