<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>VBA on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/vba/</link><description>Recent content in VBA on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 17 Sep 2026 13:30:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/vba/index.xml" rel="self" type="application/rss+xml"/><item><title>告别 #N/A：从原生 VLOOKUP 痛点到编写专属 VBA 自定义清洗查找宏</title><link>https://leafcxy.github.io/posts/2026/09/excel-vlookup-and-vba-custom-macro/</link><pubDate>Thu, 17 Sep 2026 13:30:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/09/excel-vlookup-and-vba-custom-macro/</guid><description>&lt;p&gt;在日常办公与数据处理中，&lt;code&gt;VLOOKUP&lt;/code&gt; 无疑是普及度最高、使用频率最密集的 Excel 函数之一。然而，几乎每位表格打工人都有过被 &lt;code&gt;#N/A&lt;/code&gt; 支配的绝望经历：明明两边的物料编码、员工姓名、订单号在肉眼看来一模一样，但 VLOOKUP 却固执地返回 &lt;code&gt;#N/A&lt;/code&gt;。&lt;/p&gt;
&lt;p&gt;追根究底，绝大多数查找失败并非公式逻辑有误，而是&lt;strong&gt;数据源污染&lt;/strong&gt;——ERP/CRM 导出的隐形换行符、网页复制带来的非间断空格（&lt;code&gt;&amp;amp;nbsp;&lt;/code&gt;）、中英文混杂的标点符号，甚至是员工录入时无意多按的一个空格。&lt;/p&gt;</description></item></channel></rss>