Excel external data range loses cell content (formulas) when no data found

pdg1965

New Member
Joined
Jun 13, 2016
Messages
1
We have Excel macro enabled XLSM files in Office 2010/2013 which worked 100% fine.
They connect to a MySQL database, and based on start/end date parameters, retrieve data in an Excel worksheet.
In that worksheet we added columns with formulas, for instance, to concatenate values out of certain other columns (with retrieved data from the DB).
Even when no data was found for a certain period, the added columns still had the formulas as content, in the first row of the table.

Now, since Excel 2016, we see strange behaviour....
We use exactly the same version of the reports, same ODBC connector, same DB.
But, when no data is found for a certain period, Excel clears the content of the added column cells...?? In other words, the formulas are gone, wiped away out of the cells...??

Any idea how to fix this??

Thanks in advance,
Peter
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top