从多个单元格中的列中删除回车符和换行符

时间:2017-08-09 15:16:18

标签: excel replace

尝试从列中删除回车符和换行符。将它们替换为“期间空间”

我能够使用以下代码之一(ALT + 0010)和(Alt + 0013)和(CTRL + J)查找和替换。我用(。)替换它们,所以描述看起来还不错。

以下是我从

过滤分页符和换行符的原始文本
mysql> DROP TABLE IF EXISTS `test`;
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE TABLE IF NOT EXISTS `test` (
    ->   `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    ->   `somevar` int(11) DEFAULT NULL,
    ->   PRIMARY KEY (`id`)
    -> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO `test`
    ->   (`somevar`)
    -> VALUES
    ->   (1), (0),
    ->   (NULL), (NULL),
    ->   (0);
Query OK, 5 rows affected (0.00 sec)
Records: 5  Duplicates: 0  Warnings: 0

mysql> SELECT `id`, `somevar`
    -> FROM `test`
    -> WHERE NOT `somevar` <=> 1;
+----+---------+
| id | somevar |
+----+---------+
|  2 |       0 |
|  3 |    NULL |
|  4 |    NULL |
|  5 |       0 |
+----+---------+
4 rows in set (0.00 sec)

执行过滤中断和换行并将其替换为(。)后,我将其转换为

    "MS-01 Our MS series are some of the best student microscopes on the 
    market today. With extra features such as the rotatable head, fine focus 
    control, and the option to add the mechanical stage, these scopes are a 
    popular choice for educational use. Detailed description: Quality metal 
    contruction, with optics and conforming to the universal standards (DIN) 
    for microscopes, and 5 year warranty makes these reliable microscopes 
    for a great value.   Features:
    10X Eyepiece with scale pointer
    Monocular head rotatable 360°
    3 DIN Achromatic parfocal and parcentered Objectives 4X, 10X, & 40XR
    Total magnification 40X to 400X
    Coaxial coarse & fine focusing
    Disc Diaphragm
    20W lamp
    Vinyl dust cover, spare bulb."

现在,当我将此新单元格复制并粘贴到同一单元格上的公式栏中时,它只会恢复正常。我不知道我做错了什么,它实际上没有改变这些回报的格式。

当我在使用上述替代代码之一替换后尝试删除(..)或(..)或(:。)的实例时,它甚至都找不到这些值。句点之间的空间需要2个删除才能摆脱奇数。

我正在寻找从本文档中删除这些中断的最佳方法。 如果两天现在就试过攻击。

您可以在 http://www.yopmail.com/en/ 找到该文档 使用电子邮件地址 - Helpdannyhagstromout.yopmail.com

0 个答案:

没有答案