Excel在两个字符之间剪切一个字符串

时间:2014-07-08 13:56:17

标签: excel spreadsheet

我想在Excel中删除4000多行中的所有特定强度 - 但保留我剪切的字符串中的值。

原作: (#partname

我想成为以下人物:

零件名称

这些链接/超链接/代码不在所有单元格中,但在某些单元格中,它不止一次出现。而在其他人根本不存在。

我正在使用Excel 2007。

然而,我也在Excel 2010中进行了测试 - 并尝试使用自动工具消除超链接 - 它不起作用。

这里有一个细胞信息(来自A1单元格):

    <h2>PPC-308 Bright indictor</h2>
    <h3>Original part for PPC</h3> <h3>This part fits all these models:</h3>
    Model 1<br />
    Model 2<br />
    Model 3<br />
    Model 4<br />
    Model 5<br />
    Model 6<br />
    <p>PPC Bright Indicator will give you instant information as to your vehicles status. Once installed, simply turn your CSM battery on and the indicator will show you the power level of your battery. The SDF level indicator should only be used with hump back battery packs. 
Adding the PPC <strong>Battery Pack</strong> (<a href= "http://www.partlink.com/part/2012">#2012</a> ) to your Machine increases stability performance and time.<strong> TXX </strong>(<a href= "http://www.partlink.com/en/part/87022">#87022</a>) is recommended to support the battery.</p> 
    <p>The Battery Level Indicator is designed for battery packs such as the <a href= "http://www.partlink.com/en/part/A222">#A222</a> Hump Installer Pack. Kit includes: 
    <ul> <li>IDICATOR</li> 
    <li>MAGASINE</li> <li>COVER PLATE</li></ul>

1 个答案:

答案 0 :(得分:0)

此解决方案需要根据具有多个超链接的格式进行调整。有一个或没有,这很好。

我会使用超链接在列的右侧插入两列。

在第一列中,我将插入一个函数=右(插入单元格引用A1 ,13)。

在第二列中,我将插入以下函数= IF(插入单元格引用A1 = 插入超链接文本,左(插入单元格引用B1 下,9),&#34;零件名称&#34)

然后我会在原始文件上复制并粘贴特殊值并删除两列。