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.
=TABLETODICT(Range; [Format])
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)
In this example, the following values are used:
In this example, the following values are used:
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).