<p><strong>En VBA :</strong></p>
<pre data-code-wrap="vba"><code class="lang-vba">Function NumVersLettre(colNum As Long) As String
NumVersLettre = Split(Cells(1, colNum).Address, "$")(1)
End Function
</code></pre>
<p><strong>En formule Excel :</strong></p>
<pre><code class="lang-auto">=SUBSTITUE(ADRESSE(1;A1;4);;"1";"")
</code></pre>
<p>(où A1 contient le numéro de colonne)</p>
<p><strong>En Python :</strong></p>
<pre data-code-wrap="python"><code class="lang-python">from openpyxl.utils import get_column_letter
lettre = get_column_letter(1) # 'A'
</code></pre>
<p><strong>En C# :</strong></p>
<pre data-code-wrap="csharp"><code class="lang-csharp">string col = ((char)('A' + (colNum - 1) % 26)).ToString();
// Pour les colonnes > Z, utilisez un algorithme récursif
</code></pre>