<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>Eric&#039;s Blog - EXCEL</title>
<link>https://153030.xyz/category/EXCEL/</link>
<atom:link href="https://153030.xyz/feed/category/EXCEL/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Mon, 10 Jul 2023 02:35:00 +0000</lastBuildDate>
<pubDate>Mon, 10 Jul 2023 02:35:00 +0000</pubDate>
<item>
<title>【Excel】 记录Excel的公式</title>
<link>https://153030.xyz/archives/352/</link>
<guid>https://153030.xyz/archives/352/</guid>
<pubDate>Mon, 10 Jul 2023 02:35:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[一、提取1.=IFERROR(MID(A1,FIND(&quot;-&quot;,A1,FIND(&quot;-&quot;,A1)+1)+1,LEN(A1)-FIND(&quot;-&quot...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>一、提取<br>1.</p><pre><code>=IFERROR(MID(A1,FIND(&quot;-&quot;,A1,FIND(&quot;-&quot;,A1)+1)+1,LEN(A1)-FIND(&quot;-&quot;,A1,FIND(&quot;-&quot;,A1)+1)),&quot;&quot;) 第一行
=IFERROR(MID(A2,FIND(&quot;-&quot;,A2,FIND(&quot;-&quot;,A2)+1)+1,LEN(A2)-FIND(&quot;-&quot;,A2,FIND(&quot;-&quot;,A2)+1)),&quot;&quot;) 第二行

例子：
1-5-999
1-22-9999
1-333-99999

从中提取
999
9999
</code></pre><p><a href="https://wwye.lanzouk.com/iOd6f0yjdyja">示例</a></p><p>2.</p><p>34-03-E6-A8-1B-3C(192.168.1.15),04-0E-3C-中提取34-03-E6-A8-1B-3C</p><p>使用公式：</p><pre><code>=LEFT(A1, FIND(&quot;(&quot;, A1) - 1)
</code></pre><p>3.“有效期（10年）”中提取 10   或是 “有效期（5年）”中提取 5</p><p>=TEXT(MID(A1,FIND("（",A1)+1,FIND("年",A1)-FIND("（",A1)-1),"#")</p><p>二、计算<br>1.</p><pre><code>打开 Excel 文件。
按下 ALT + F11 打开 VBA 编辑器。
在 VBA 编辑器中，插入一个新的模块。
将以下述代码复制粘贴到新模块中。

Function SumColoredCells(rng As Range) As Double
    Dim cell As Range
    Dim total As Double
    
    total = 0
    
    For Each cell In rng
        If cell.Interior.Color &lt;&gt; RGB(255, 255, 255) Then &#039; 修改为你想要的颜色，这里使用白色作为示例
            total = total + cell.Value
        End If
    Next cell
    
    SumColoredCells = total
End Function

使用：（计算A1:H1）区域带有颜色的值

=SumColoredCells(A1:H1)
</code></pre><p><a href="https://wwye.lanzouk.com/ix4KB0yj1t1a">示例</a></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/352/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>Excel 中提取省，市，区</title>
<link>https://153030.xyz/archives/267/</link>
<guid>https://153030.xyz/archives/267/</guid>
<pubDate>Thu, 28 Jan 2021 07:12:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[1.以数据在A1为例方法1:省=LEFT(A1,MIN(FIND({&quot;省&quot;,&quot;市&quot;,&quot;区&quot;}, A1&amp;&quot;省市区&qu...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>1.以数据在A1为例</p><p>方法1:</p><p>省</p><pre><code>=LEFT(A1,MIN(FIND({&quot;省&quot;,&quot;市&quot;,&quot;区&quot;}, A1&amp;&quot;省市区&quot;)))
</code></pre><p>市</p><pre><code>=SUBSTITUTE((LEFT(A1,MIN(FIND({&quot;市&quot;,&quot;区&quot;,&quot;县&quot;},A1&amp;&quot;市区县&quot;)))),B1,&quot;&quot;)
</code></pre><p>区</p><pre><code>=SUBSTITUTE((LEFT(A1,MIN(FIND({&quot;区&quot;,&quot;县&quot;,&quot;镇&quot;},A1&amp;&quot;区县镇&quot;)))),B1&amp;C1,&quot;&quot;)</code></pre><p>或者</p><pre><code>=SUBSTITUTE((LEFT(A1,MIN(FIND({&quot;区&quot;,&quot;县&quot;,&quot;镇&quot;},A1&amp;&quot;区县镇&quot;)))),(LEFT(A1,MIN(FIND({&quot;市&quot;,&quot;区&quot;,&quot;县&quot;},A1&amp;&quot;市区县&quot;)))),&quot;&quot;)
</code></pre><p>镇</p><pre><code>=SUBSTITUTE((LEFT(A1,MIN(FIND(&quot;镇&quot;,A1&amp;&quot;镇&quot;)))),B1&amp;C1&amp;D1,&quot;&quot;)
</code></pre><p>方法2：</p><p>省</p><pre><code>=LEFT(A1,MIN(FIND({&quot;省&quot;,&quot;市&quot;,&quot;区&quot;},A1&amp;&quot;省市区&quot;)))
</code></pre><p>市</p><pre><code>=MID(LEFT(A1,FIND(&quot;市&quot;,A1)),FIND(&quot;省&quot;,A1)+1,5)</code></pre><p>区</p><pre><code>=MID(LEFT(A1,FIND(&quot;区&quot;,A1)),FIND(&quot;市&quot;,A1)+1,5)
</code></pre><p>镇</p><pre><code>=MID(LEFT(A1,FIND(&quot;镇&quot;,A1)),FIND(&quot;区&quot;,A1)+1,5)</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/267/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>Excel 检测到此文件存在一个问题。要帮助保护您的计算机，不能打开office</title>
<link>https://153030.xyz/archives/164/</link>
<guid>https://153030.xyz/archives/164/</guid>
<pubDate>Fri, 01 Mar 2019 03:58:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[检测到此文件存在一个问题发现有的表格能够打开，有的不能够打开，且打开其他表格正常使用    其两个版本，office2013、office2010出现该问题的有通过研究，它不清楚，解决方案为修改...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h2>检测到此文件存在一个问题</h2><p>发现有的表格能够打开，有的不能够打开，且打开其他表格正常使用    <br>其两个版本，office2013、office2010出现该问题的有通过研究，它不清楚，解决方案为修改注册表。<br>自己改注册表文件，双击注册即可。（管理员身份运行）<br>注册表修改：office2010</p><pre><code>Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\excel\Security\FileValidation]
&quot;EnableOnLoad&quot;=dword:00000000   

</code></pre><p>注册表修改：office2013</p><pre><code>Windows Registry Editor Version 5.00    [HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\excel\Security\FileValidation]
&quot;EnableOnLoad&quot;=dword:00000000
</code></pre><p>创建注册表文件的方法：<br>1.新建一个txt文本文档<br>2.把上面的注册表代码粘贴在这个文本文档中<br>3.修改.txt为.reg</p><p>这样以管理员方式运行，双击注册就可以解决此问题了</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/164/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>Excel设置每行分页</title>
<link>https://153030.xyz/archives/137/</link>
<guid>https://153030.xyz/archives/137/</guid>
<pubDate>Sat, 20 Oct 2018 04:30:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[每1行自动插入分页符为例子，1.首先将Excel里面的开发工具调用出来，点击“文件”--”选项“--”开发工具“前打钩，再点击”确定“。2.接下来点击"开发工具",打开VBA编辑器3.接着在编辑...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>每1行自动插入分页符为例子，</p><p>1.首先将Excel里面的开发工具调用出来，点击“文件”--”选项“--”开发工具“前打钩，再点击”确定“。</p><p>2.接下来点击"开发工具",打开VBA编辑器</p><p>3.接着在编辑器里面，编写程序，每5行自动分页，再点击运行。小编将本例子的程序编写出来，方便网友复制，程序如下：</p><pre><code>Sub 分页()

For i = 6 To 20 Step 1 &#039; [Step 1]的意思就是1行就执行一次分页

 ActiveSheet.HPageBreaks.Add Before:=Cells(i, 1)

Next

End Sub
</code></pre><p>参数20为前20行执行这样的规则</p><p>4.保存的时候，因为应用到宏，所以保存时需另存为启用宏的工作簿的保存类型，下回可直接重新打开。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/137/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>Excel Microsoft Visual Basic 运行时错误“3706”</title>
<link>https://153030.xyz/archives/62/</link>
<guid>https://153030.xyz/archives/62/</guid>
<pubDate>Mon, 11 Jun 2018 03:34:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[第一步，先安装Microsoft Access Database Engine 2010 Redistributable （或者AccessDatabaseEngine_X64）    http...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>第一步，先安装</p><pre><code>Microsoft Access Database Engine 2010 Redistributable （或者AccessDatabaseEngine_X64）    

http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=C06B8369-60DD-4B64-A44B-84B371EDE16D    
</code></pre><p>个人感觉如果系统已经安装office 2007应该不用安装该驱动</p><p>第二步 修改连接    <br>原来连接 <code>Provider=Microsoft.Jet.OLEDB.4.0;Data Source=1.xls;Extended Properties=&quot;Excel 8.0;HDR=YES;IMEX=1&quot;</code>    <br>修改为：</p><pre><code>Provider=Microsoft.ACE.OLEDB.12.0;Data Source=1.xls;Extended Properties=&quot;Excel 12.0;HDR=YES;IMEX=1&quot;


</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/62/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>.xls的格式格式不一致</title>
<link>https://153030.xyz/archives/44/</link>
<guid>https://153030.xyz/archives/44/</guid>
<pubDate>Mon, 11 Jun 2018 02:19:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[故障现象：处理方法：“开始-运行-输入regedit，然后依次打开注册表“HKEY_CURRENT_USER--Software--Microsoft--Office--14.0--Excel—...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>故障现象：</p><p>处理方法：“开始-运行-输入<code>regedit</code>，</p><p>然后依次打开注册表“<code>HKEY_CURRENT_USER--Software--Microsoft--Office--14.0--Excel—Security</code>，</p><p>把EnableDEP重命名为：“<code>ExtensionHardening</code>”</p><p>然后右击“<code>ExtensionHardening</code>”-修改[M]-把值设为0然后保存</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/44/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>Excel文档不能直接打开,要单击文件－打开－选择后才能打开的解决</title>
<link>https://153030.xyz/archives/43/</link>
<guid>https://153030.xyz/archives/43/</guid>
<pubDate>Mon, 11 Jun 2018 02:18:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[Excel文档不能直接打开,要单击文件－打开－选择后才能打开的解决方法：一直都是打不开，操作步骤如下：工具,&quot;选项&quot;,&quot;常规&quot;标签,将&quot;忽略其它...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>Excel文档不能直接打开,要单击文件－打开－选择后才能打开的解决方法：</p><ol><li><p>一直都是打不开，操作步骤如下：</p><pre><code>工具,&quot;选项&quot;,&quot;常规&quot;标签,将&quot;忽略其它应用程序&quot;这个复选项前的勾去除即可.[这种情况很多时候是由于版本或其他原因引起的]
</code></pre></li><li><p><code>IgnoreRemoteRequests</code>  的问题</p><pre><code>试试执行以下代码
</code></pre></li></ol><pre><code>Application.IgnoreRemoteRequests = True
执行完后退出Excel
从我的电脑随便打开一个excel文件,是不是开不了?问题就在这了
再执行 `Application.IgnoreRemoteRequests = False`
退出Excel,一切又变正常了

关键是那句代码在哪里执行，先启动excel，工具－宏－宏…随便取个宏名，但是一定要是字母开头，再点创建，在


&quot;Sub a()
End Sub&quot;
之间插入那句 `Application.IgnoreRemoteRequests = False`
再回到excel，宏－宏...－执行就ok了
</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/43/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>CSV用Excel打开出现乱码</title>
<link>https://153030.xyz/archives/42/</link>
<guid>https://153030.xyz/archives/42/</guid>
<pubDate>Mon, 11 Jun 2018 02:17:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[故障现象：从系统中导出数据文件存储为CSV格式的文件，使用记事本打开文字显示没有问题，使用EXCEL打开出现乱码的现象。原因分析（适用范围）：一般情况是导出的文件编码的问题。在简体中文环境下，E...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>故障现象：</p><pre><code>从系统中导出数据文件存储为CSV格式的文件，使用记事本打开文字显示没有问题，使用EXCEL打开出现乱码的现象。
</code></pre><p>原因分析（适用范围）：</p><pre><code>一般情况是导出的文件编码的问题。在简体中文环境下，EXCEL打开的CSV文件默认是ANSI编码，如果CSV文件的编码方式为utf-8、
Unicode等编码可能就会出现文件乱码的情况。
</code></pre><p>解决方法：</p><pre><code>开始菜单-----Microsoft office-- Microsoft office 工具-- Microsoft office 2003语言设置，将Microsoft office应用程序默认方式的语言设为“中文（简体）”。</code></pre><p><img src="https://1994.ml/usr/uploads/2018/06/2066374340.png" alt="12.png" title="12.png"><br>使用记事本打开CSV文件，文件---另存为，编码方式选择ANSI：<br><img src="https://1994.ml/usr/uploads/2018/06/2214082868.jpg" alt="13.jpg" title="13.jpg"><br>保存完毕后，用EXCEL打开这个文件就不会出现乱码了。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/42/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>EXCEL表格打开后特别的缓慢，表格特别的大，在输入数据后很缓慢，而其他表格无此现象。</title>
<link>https://153030.xyz/archives/39/</link>
<guid>https://153030.xyz/archives/39/</guid>
<pubDate>Mon, 11 Jun 2018 02:10:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[原因分析（适用范围）：1. 在工作中从其他表格复制数据到本表格的过程中产生大量文本框，是表格变大，缓慢.解决方法：打开表格后，选择“查找和选择”—“定位条件”   或者按ctrl+G ，选择“定...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>原因分析（适用范围）：</p><pre><code>1. 在工作中从其他表格复制数据到本表格的过程中产生大量文本框，是表格变大，缓慢.</code></pre><p>解决方法：</p><pre><code>打开表格后，选择“查找和选择”—“定位条件”</code></pre><p><img src="https://1994.ml/usr/uploads/2018/06/704240598.png" alt="7.png" title="7.png"></p><pre><code>   或者按ctrl+G ，选择“定位条件”如图：</code></pre><p><img src="https://1994.ml/usr/uploads/2018/06/2846892350.jpg" alt="8.jpg" title="8.jpg"></p><pre><code>    然后选择“对象”点击“确定”。</code></pre><p><img src="https://1994.ml/usr/uploads/2018/06/564026562.jpg" alt="9.jpg" title="9.jpg"></p><pre><code>    然后等待，定位文本框，这个过程需要很长时间，可能会出现表格无响应的现象，等待出现文本框全部定位完成，点击delete删除.
    ![10.jpg][4]
    然后重新定位，会出现以下现象。</code></pre><p><img src="https://1994.ml/usr/uploads/2018/06/1500975040.jpg" alt="11.jpg" title="11.jpg"></p><pre><code>   说明已经删除完毕，这时保存表格，会发现表格小了很多，也不会再卡了。

</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/39/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
<item>
<title>Excel 无法插入空行</title>
<link>https://153030.xyz/archives/29/</link>
<guid>https://153030.xyz/archives/29/</guid>
<pubDate>Mon, 11 Jun 2018 02:02:00 +0000</pubDate>
<dc:creator>eric</dc:creator>
<description><![CDATA[原因分析（适用范围）：Excel2010行数：1至1048576，列数：A至XFD，共计(16384)列。无法将非空的行挤出去，所以无法插入解决方法：找到最后一行，即使是没有数据单元格内或者有空...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>原因分析（适用范围）：</p><pre><code>Excel2010行数：1至1048576，列数：A至XFD，共计(16384)列。无法将非空的行挤出去，所以无法插入</code></pre><p>解决方法：</p><pre><code>找到最后一行，即使是没有数据单元格内或者有空格，有空格也是非空，即使没有空格，单元格设置了格式也为非空。选中最后一行单元格清除格式，
并清除多行单元格格式，重新插入空行，如图：</code></pre><p><img src="https://1994.ml/usr/uploads/2018/06/2298106573.jpg" alt="3.jpg" title="3.jpg"><br>点击确定，就可以插入空行了。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://153030.xyz/archives/29/#comments</comments>
<wfw:commentRss>https://153030.xyz/feed/category/EXCEL/</wfw:commentRss>
</item>
</channel>
</rss>