<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7967794469785643799</atom:id><lastBuildDate>Wed, 14 Jan 2026 15:41:09 +0000</lastBuildDate><category>Excel</category><category>VBA</category><title>VanTed Bits</title><description>A quest for software technology insights</description><link>http://vantedbits.blogspot.com/</link><managingEditor>noreply@blogger.com (Tatu Vanhanen)</managingEditor><generator>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7967794469785643799.post-6173191892566712265</guid><pubDate>Wed, 06 Oct 2010 18:55:00 +0000</pubDate><atom:updated>2010-10-12T08:06:33.782+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Excel</category><category domain="http://www.blogger.com/atom/ns#">VBA</category><title>Excel VBA Tip: translate formulas between local language and English</title><description>&lt;div class=&quot;sub-heading&quot;&gt;Let Microsoft Excel translate formulas between local language and English&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Localized loveliness&lt;/b&gt;&lt;br /&gt;
Whether you like it or not, all functions are localized in Microsoft Excel. This may sometimes lead to situations where you would like to know the English equivalent of a localized function - or vice versa. Fortunately there are web sites, such as &lt;a href=&quot;http://www.piuha.fi/excel-function-name-translation/index.php&quot;&gt;this&lt;/a&gt;, that contain function translations between certain languages, but you can also harness Excel itself to do the translation.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Translator spreadsheet&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBb3Bm7LPRd_61e1N3YFstGtj7691VdpjLApAo9sdUYuRpisQYlC1FM9sQMuiXsk_mA9mWzuYISaQdTqkZgbrrC-bO01mQW9ZOwMAHlaUg40zVuWaZVjwcppfXCbEKIY2haZm_Ng6dpM8/s1600/formulatranslator.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Local version of the formula is shown in the formula bar&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
You can &lt;a href=&quot;http://sites.google.com/site/vantedbits/vantedbits/articles/vbaformulatranslat/translateformula.xls&quot;&gt;download the above translator spreadsheet&lt;/a&gt; and use it as is&lt;b&gt;. &lt;/b&gt;If you want to know how it works, read on.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How does it work?&lt;/b&gt;&lt;br /&gt;
Internally, Excel understands only English. Before evaluating formulas, Excel &quot;generalizes&quot; them to the English version it understands. This affects not only functions, but also parameter separators (semicolon vs comma).&lt;br /&gt;
&lt;br /&gt;
&quot;Under the hood&quot; in VBA, you are working in the internal English environment, too. This means that even if a formula is local language in the worksheet, it will be English when you get it from a cell (with &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Range.Formula&lt;/span&gt;-propety) in VBA.&lt;br /&gt;
&lt;br /&gt;
Likewise, even if a formula will be local language in the worksheet, it must be English when you set it to a cell in VBA.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The VBA code&lt;/b&gt;&lt;br /&gt;
Knowing these facts, you can easily craft a simple VBA &lt;a href=&quot;http://www.ozgrid.com/VBA/run-macros-change.htm&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Worksheet_Change&lt;/span&gt;&lt;/a&gt; event handler that translates any formula between the local version and English version:&lt;br /&gt;
&lt;pre class=&quot;brush: vb&quot;&gt;Private Sub Worksheet_Change(ByVal Target As Range)

    Dim cell As Variant
    
    &#39; Prevent recursive change event because of this code
    Application.EnableEvents = False
    
    &#39; Column B (up to row 100) is the local version,
    &#39; column C (up to row 100) is the English version.
    
    If Not Intersect(Target, Range(&quot;B3:B100&quot;)) Is Nothing Then
        For Each cell In Target
            &#39; Take the formula, and put it in the English cell as text
            cell.Offset(0, 1).Value = &quot;&#39;&quot; &amp;amp; cell.Formula
        Next cell
    ElseIf Not Intersect(Target, Range(&quot;C3:C100&quot;)) Is Nothing Then
        For Each cell In Target
            &#39; Take the text from the English cell and
            &#39; put it as a formula to the equivalent local cell
            cell.Offset(0, -1).Formula = cell.Value
        Next cell
    End If
    
    &#39; Re-enable events
    Application.EnableEvents = True
    
End Sub
&lt;/pre&gt;&lt;br /&gt;
The event handler reacts to changes in column B (local formula) and C (English formula). The &quot;trick&quot; here is to let a formula do a roundtrip from column B through VBA code into column C, where it&#39;s forced to be just plain text (line 14). So you are just revealing the internal version of the formula that Excel itself uses.&lt;br /&gt;
&lt;br /&gt;
Going in the other way is just as easy. You get the text (that represents the English formula) from column C and set it as a formula to the adjacent cell in column B. Because the formula is now a real formula, you have to select the cell and look in the formula bar to see the local version.&lt;br /&gt;
&lt;br /&gt;
That&#39;s it this time. What do you think; is this useful to you or maby just old information?</description><link>http://vantedbits.blogspot.com/2010/10/excel-vba-tip-translate-formulas.html</link><author>noreply@blogger.com (Tatu Vanhanen)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBb3Bm7LPRd_61e1N3YFstGtj7691VdpjLApAo9sdUYuRpisQYlC1FM9sQMuiXsk_mA9mWzuYISaQdTqkZgbrrC-bO01mQW9ZOwMAHlaUg40zVuWaZVjwcppfXCbEKIY2haZm_Ng6dpM8/s72-c/formulatranslator.jpg" height="72" width="72"/><thr:total>31</thr:total></item></channel></rss>