Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
87 lines (63 loc) · 1.37 KB

File metadata and controls

87 lines (63 loc) · 1.37 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Import-Excel

SYNOPSIS

Import data from Excel using Excel's COM interface.

Script file

Data Wrangling\Import-Excel.ps1

SYNTAX

ByName

Import-Excel [-FullName] <Object> -SheetName <String>

ByNumber

Import-Excel [-FullName] <Object> -SheetNumber <Int32>

DESCRIPTION

Converts the Excel file to a temporary .csv file and imports the same using Import-Csv. Works only with default delimiter since no paramenter is implemented so far.

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

$excelFile | Import-Excel

PARAMETERS

-FullName

The Path to the Excel file to be imported.

Type: Object
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-SheetName

The name of the sheet to be imported from the Excel file.

Type: String
Parameter Sets: ByName
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SheetNumber

The number of the sheet to be imported from the Excel file.

Type: Int32
Parameter Sets: ByNumber
Aliases: 

Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Morty Proxy This is a proxified and sanitized view of the page, visit original site.