Děláme to v PHP:
private function numToB26($num)
{
/* $num++; // Uncomment to use "Excel"-mapping, e.g. 1=A instead of 0=A */
do {
$val = ($num % 26) ?: 26;
$num = ($num - $val) / 26;
$b26 = chr($val + 64).($b26 ?: '');
} while (0 < $num);
return $b26;
}