TOP

TableToDict Function

TABLETODICT() Description

The TABLETODICT() function is designed for quick conversion of tabular data from Excel (LibreOffice Calc) programs. It automatically converts selected values into a structured "dictionary" data type.

The result obtained is fully compatible with the formats used in the Python and PHP programming languages.


Key Features of the TABLETODICT Function

Syntax:

=TABLETODICT(Range; [Format])

Parameters:

Usage Example

The TABLETODICT() function is simple to use. You just need to select a table and specify the desired dictionary format (0-Python or 1-PHP) and Excel (Calc) will automatically return an array of values:

=TABLETODICT(Range; Format)

Example 1

Example of using the TABLETODICT() function
Example of using the TABLETODICT() function

In this example, the following values are used:

Example 2

Example of using the TABLETODICT() function
Example of using the TABLETODICT() function

In this example, the following values are used:

Download Extension

You can use the TABLETODICT() function by installing the YLC Utilities extension.

After that, this function will be available in all files opened in Excel (LibreOffice Calc).


This function is available in the following extensions: YLC LightYLC FunctionsYLC Utilities

The YLC Utilities menu in LO Calc

The YLC Utilities menu in LO Calc

The YLC Utilities menu in Excel

The YLC Utilities menu in Excel