Get the data source window (Ctrl+Shift+F4).
Navigate your databse and drag the icon of a query or a table onto a sheet cell.
The result will be a linked database range which can be refreshed by menu:Data>Refresh when any cell in that range is selected.
Call menu:Data>Define… and mark the entry “Import1” which is the default name of the linked database range.
Click the extra options and make sure that the following 2 options are checked:
-
Keep formatting which means the the spreadsheet formatting.
-
Insert or delete cells which resizes the changing import range by insertion and deletion of cells, preserving any other data/formulas from being overwritten.
Calculated fields (formulas adjacent to the import range) expand and shrink with the dynamic data range.