Excel Write Format

Write data to Excel through MATLAB and format the spreadsheet.

You are now following this Submission

Note: this uses a COM interface and so is for Windows only.

This function lets you export multiple sets of data to spreadsheets and apply formatting.
The program is suited to formatting the font (size, name, etc.), changing the cell interior (colour, pattern) , cell range (column width, text alignment) and borders (line style, weight, colour), as some processing/ checks are performed before these are applied. However, formatting can be applied to other fields of the Range interface.

The properties are defined using a structure based on the COM interface. Hopefully this is fairly straightforward, and there is a function to display the options for the interfaces as well as an example covering a wide range of formatting options.

Cite As

Tom (2026). Excel Write Format (https://in.mathworks.com/matlabcentral/fileexchange/42385-excel-write-format), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0