in reply to excel format problem

How should Excel know the value is a hex number? Use hex:
$worksheet1->write($row_num, $col_num, hex $hex_data, $right, $num_for +mat);
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ