Replies: 1 comment 4 replies
-
Thank you! I guess you're using an older version of Excel prior to Office 365? In Excel 365, Microsoft introduced dynamic arrays, so an a returned array will magically grow to the required size. Prior to this, if you wanted to return an array, you needed to pre-size the space with Ctrl-Shift-Enter. Some addins (e.g. Bloomberg, pyxll) introduced workarounds for the lack of dynamic arrays in the 20-odd years before they were introduced. The workarounds paste data into the sheet after the Excel calculation cycle and inevitably have some drawbacks (e.g. formula tracing doesn't work, potential to overwrite data in the sheet). Because of the drawbacks and because the feature is available in the latest Excel I'm reluctant to add add an auto-resize feature. |
Beta Was this translation helpful? Give feedback.
-
Hi Cunnane,
Great job you made wit XLOIL.
I'm building a monitoring dashboard that we extract data, save to MySQL and real-time visualization is going to be on excel.
I'm trying to read data with RTD, however data is a dataframe that spans over more than 1 cell.
It brings a list of data above a threshold, so it's 10-20 rows worth of data.
With xloil, I can only bring function data for 1 cell, nothing further.
What might I be doing wrong?
if I change the return to yield dados.to_string() it brings all data but in 1 cell, if I change a to_list() I get only 1 record.
The workaround would be to have a function and on every cell I set which data to be recovered, however I guess it would run many SQL Statements which would clog my spreadsheet.
On Excel, I run pyGetData().
Please advise.
PS: I tried searching for the equivalent on pyxll autoresize=True feature, but couldn't. E.g. (video at the right second) https://youtu.be/wNRuB7QlcJo?t=385
Beta Was this translation helpful? Give feedback.
All reactions