円、ドル の表示を行う。
・3桁毎に, を表示。
・ドルは、0.00 で少数2桁表示。
・マイナスの場合は赤字で表示。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#セル表示 | |
if($money == "円"){ | |
$sheet->getStyle("C7:G{$tg}")->getNumberFormat()->setFormatCode('"\"#,##0;[Red]"-\"#,##0'); | |
} | |
else{ | |
$sheet->getStyle("C7:G{$tg}")->getNumberFormat()->setFormatCode('"$"#,##0.00;[Red]"-$"#,##0.00'); | |
} |
0 件のコメント:
コメントを投稿