Write a function that automatically fits data to cells

Job ID: 32201107

Budget: $14 – $30 NZD

Hi I and getting error in google sheets "Error
Array result was not expanded because it would overwrite data in A46." need a way to expand the cells automatically.
Related categories: Excel Programming Excel Macros Google Sheets