API Reference
Cmdlet
Import-OfficeExcelDelimitedText
Imports normalized CSV/TSV text into an Excel workbook through OfficeIMO.
Remarks
Imports normalized CSV/TSV text into an Excel workbook through OfficeIMO.
Examples
Import a semicolon-delimited regional export as a typed worksheet table.
PS>
$result = Import-OfficeExcelDelimitedText -Path .\Report.xlsx `
-SourcePath .\sales-pl.csv `
-Delimiter ';' `
-CultureName 'pl-PL' `
-SheetName Sales `
-PassThru
$result | Format-List SheetName,Range,RowCount,ColumnCount,Delimiter
Normalizes delimited text through OfficeIMO, performs culture-aware value conversion, and writes the result as an Excel table unless -NoTable is used.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Import-OfficeExcelDelimitedText [-CultureName <String>] [-Delimiter <Nullable`1>] -InputPath <String> [-NoHeader] [-NoTable] [-NoTypeConversion] [-PassThru] [-SheetName <String>] [-SkipRows <Int32>] -SourcePath <String> [<CommonParameters>]#Parameter set:
PathParameters
- CultureName String
- Culture name for number and date conversion.
- Delimiter Nullable`1
- Delimiter character. When omitted, it is detected.
- InputPath String
- Workbook path.
- NoHeader SwitchParameter
- Treat the first row as data.
- NoTable SwitchParameter
- Import rows without creating an Excel table.
- NoTypeConversion SwitchParameter
- Keep imported values as text.
- PassThru SwitchParameter
- Emit a result object.
- SheetName String
- Worksheet name to create or inspect.
- SkipRows Int32
- Number of parsed delimited records to skip before header discovery or data import.
- SourcePath String
- Delimited text source path.
Outputs
System.Management.Automation.PSObject
Import-OfficeExcelDelimitedText [-CultureName <String>] [-Delimiter <Nullable`1>] -Document <ExcelDocument> [-NoHeader] [-NoTable] [-NoTypeConversion] [-PassThru] [-SheetName <String>] [-SkipRows <Int32>] -SourcePath <String> [<CommonParameters>]#Parameter set:
DocumentParameters
- CultureName String
- Culture name for number and date conversion.
- Delimiter Nullable`1
- Delimiter character. When omitted, it is detected.
- Document ExcelDocument
- Workbook document.
- NoHeader SwitchParameter
- Treat the first row as data.
- NoTable SwitchParameter
- Import rows without creating an Excel table.
- NoTypeConversion SwitchParameter
- Keep imported values as text.
- PassThru SwitchParameter
- Emit a result object.
- SheetName String
- Worksheet name to create or inspect.
- SkipRows Int32
- Number of parsed delimited records to skip before header discovery or data import.
- SourcePath String
- Delimited text source path.
Outputs
System.Management.Automation.PSObject