TOP

Function TableToDict

TABLETODICT() Description

The TABLETODICT() function converts a value from a table Excel (Calc) into "dictionary" data type (dictionary) in Python or PHP format.


Key Features of the TABLETODICT Function

Syntax:

=TABLETODICT(Range; [Format])

Parameters:

Example of Use

The TABLETODICT() function is simple to use. You just need to select a table and specify the desired dictionary format (1-Python or 2-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 the extension

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

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


This function is also available in the following extensions: YLC 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