Added Number Formatting

This commit is contained in:
dfinke
2016-03-26 13:57:21 -04:00
parent 41bca369c5
commit 5b0a528711
10 changed files with 73 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
$file = "disks.xlsx"
rm $file -ErrorAction Ignore
$data = $(
New-PSItem 100 -100
New-PSItem 1 -1
New-PSItem 1.2 -1.1
New-PSItem -3.2 -4.1
New-PSItem -5.2 6.1
New-PSItem 1000 -2000
)
$data | Export-Excel -Path $file -Show -AutoSize -NumberFormat '[Blue]$#,##0.00;[Red]-$#,##0.00'