mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Added Number Formatting
This commit is contained in:
11
Examples/NumberFormat/PosNegNumbers.ps1
Normal file
11
Examples/NumberFormat/PosNegNumbers.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
$file = "disks.xlsx"
|
||||
|
||||
rm $file -ErrorAction Ignore
|
||||
|
||||
$data = $(
|
||||
New-PSItem 100 -100
|
||||
New-PSItem 1 -1
|
||||
New-PSItem 1.2 -1.1
|
||||
)
|
||||
|
||||
$data | Export-Excel -Path $file -Show -AutoSize -NumberFormat "0.#0;-0.#0"
|
||||
Reference in New Issue
Block a user