XLPack

XLPack is an extension module for Excel, developed to facilitate small- to medium-scale numerical computations on standard office or home PCs. It adds specialized numerical computation capabilities̶covering a wide range of fields̶to Excel. Since Excel supports programming via VBA* and offers graphing features for clear visualization of results, the addition of these numerical computation functions transforms it into a powerful, easy-to-use tool for numerical analysis. (* Visual Basic for Applications: Built-in macro language of Excel)

Software contents

XLPack consists of worksheet function library, solver and VBA subroutine/function library. These can be divided into two types: tools for numerical calculations without programming and tools supporting VBA programming.

(1) Numerical calculation without programming

Worksheet function library

It is provided as functions that can be entered directly into Excel worksheets.
Simply by entering data into a worksheet, you can perform calculations involving linear equations, eigenvalue problems, least squares approximation,
special functions, and more.

Example of worksheet function

Solver add-in

By using formulas entered into an Excel worksheet, you can solve problems such as nonlinear equations, numerical integration, and ordinary differential equations without the need for programming.

Example of solver add-in

(2) Supporting VBA numerical programming

VBA subroutine/function library

The library of subroutines and functions that can be called from VBA. It enables you to develop engineering calculation applications that run in Excel without the need for specialized numerical programming.

Performance of XLPack

(1) Fast computation

XLPack performs calculations faster than equivalent programs written entirely in VBA. The figure below shows the measured CPU times required to solve a system of linear equations. In this example, using XLPack resulted in approximately 1,000 times faster computation than using a program written entirely in VBA. Even on a mainstream processor (Intel Core i3-14100), XLPack can solve a system of 5,000 simultaneous linear equations in approximately 1.3 seconds, demonstrating its practical computational performance.

CPU time of linear calculations

(2) Efficient algorithms

XLPack employs efficient, state-of-the-art algorithms. The figure below shows an example of an initial value problem for an ordinary differential equation (ODE). It presents a logarithmic plot of the number of function evaluations versus the relative error of the computed solution. Compared with commonly used methods, such as Euler’s method and the fourth-order Runge–Kutta method, XLPack uses algorithms that can obtain solutions with significantly fewer function evaluations.

Computation amount of ordinary differential equations

Use cases

  • Computational Tool for Researchers and Engineers
    • Perform small- to medium-scale numerical computations easily and at practical speeds
    • Focus on your core work without having to worry about the details of numerical computation
  • Development Support
    • Easily program in VBA, making it ideal for rapid prototyping and the development of disposable programs
  • Computational Platform for Education
    • Multiple routines implementing different algorithms are available, making the platform useful for learning numerical methods

XLPack Version 7.0

Software requirements

  • Windows 10 (Version 22H2) or Windows 11
  • Microsoft (Office) 365 or Office (Excel) 2024

Features

The base program provides basic functions consisting of 27 worksheet functions, 216 VBA subroutines/functions, and a solver, offering sufficient capabilities for general-purpose calculations.

Additional functionality can be added through five extension modules: (1) Linear algebra (real numbers), (2) Linear algebra (complex numbers), (3) Special functions and nonlinear computations, (4) Interpolation, differentiation and integration, and random number generation, and (5) Large-scale sparse matrix computations.

Combining the basic functions with all five extension modules provides a total of 1,385 VBA functions and 216 worksheet functions.

The detail list of functions is as follows. The orange parts are provided as basic functions.

XLPack detail list of functions

Products

  • XLPack Lite (base program)
    • It is the base program of XLPack providing basic functions.
    • You can install “XLPack Lite” from the Microsoft Store or download it from this website and install it. It is available free of charge.
    • The manuals and sample worksheets are provided online.
  • XLPack Addons (extension modules)
    • XLPack’s extension functionas are provided in five separate modules.
    • You can use these modules by installing “XLPack Addons” from the Microsoft Store. Installation is free of charge. Annual licenses for individual modules can be purchased through the Microsoft Store (via in-app purchases), allowing you to select only the modules you need and keep costs to a minimum. Each license can be used on up to 10 PCs.
    • The manuals and sample worksheets are provided online.

The software and sample worksheetws can be downloaded from here.

For detail installation and setup procedure, refer to here.

The reference manual is available here.

XLPack API

Calculation modules of XLPack can be called through this interface as the numerical library from other languages such as C/C++, Python and C#.

Refer to XLPack 7.0 API Guide for more details.

Changes from XLPack 6.1 (previous version)

See for details in release notes.

XLPack 7.0 Release Notes
XLPack Lite 7.0 Release Notes

Related links

  • Brochure: Refer to Download page.
  • Tutorial is available for those who are first to XLPack or who want to look at the usage examples.