The TABLETOSQL() function converts values from a table into an SQL
This function also takes the sheet name as the SQL table name.
=TABLETOSQL(Range)
The TABLETOSQL() function is easy to use. You just need to select a table with headers and Excel (Calc) will automatically return the text in "INSERT INTO" SQL command format:
=TABLETOSQL(Range)
We will get the following result:
The following values are used in this example:
You can use the TABLETOSQL() function by installing the YLC Utilities extension.
After this, the function will be available in all files opened in Excel (LibreOffice Calc).