IRONSOFTWAREHOME
Load Excel Files without Interop
from ironxl import *

# Supported for XLSX, XLS, XLSM, XLTX, CSV, and TSV
workbook = WorkBook.Load("sample.xlsx")

# Select worksheet at index 0
worksheet = workbook.WorkSheets[0]

# Get any existing worksheet
first_sheet = workbook.DefaultWorkSheet

# Select a cell and return the converted value
cell_value = worksheet["A2"].IntValue

# Read from ranges of cells elegantly.
for cell in worksheet["A2:A10"]:
    print("Cell {} has value '{}'".format(cell.AddressString, cell.Text))

# Calculate aggregate values such as Min, and Sum
total_sum = worksheet["A2:A10"].Sum()
pip install ironxl
Load Excel Files without Interop

Load Excel Files without Interop

The Load feature in IronXL allows Python developers to open and manipulate existing Excel files in a variety of formats including XLSX, XLS, and CSV. Loading a WorkBook provides access to all of its worksheets and cell data, making it easy to extract values, iterate over ranges, and perform calculations such as sums or maximum values. Cells can be accessed individually and their values converted to the appropriate Python data type. This feature simplifies working with Excel data in Python and is ideal for data analysis, report generation, and workflow automation.

WorkBook.Load is the starting point for working with existing Excel files. By passing a file path, IronXL opens the workbook and makes all of its content available for manipulation - without requiring Microsoft Excel to be installed.

After loading the workbook, WorkSheets[0] selects the first worksheet. In Excel, a workbook can contain multiple sheets, each representing a set of data organized into rows and columns. Targeting the first sheet allows access to the primary data source.

The range variable worksheet["A2:A10"] defines a group of cells spanning rows 2 through 10 in column A. IronXL lets you interact with multiple cells at once, whether reading values, applying formatting, or running aggregate calculations.

The .Sum() method computes the total of all numeric values in the selected range, eliminating the need for manual iteration. IronXL also provides built-in functions including Average(), Min(), and Max() for common data analysis tasks.

Finally, the result is printed to the console. This pattern integrates easily into larger Python workflows for data aggregation, reporting pipelines, or database imports.

Learn to Load and Manipulate Excel Files with IronXL for Python

Ready to Get Started?

Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required