spreadsheet

writing large excel spreadsheets

感情迁移 提交于 2019-12-05 19:09:55
has anybody found a library that works well with large spreadsheets? I've tried apache's POI but it fails miserably working with large files - both reading and writing. It uses massive amounts of memory leaving you needing a supercomputer to parse or create a 20+mb spreadsheet. Surely there is a more memory efficient way and someone has written it?! Vikram @pstanton.. I was working on a similar solution and was able to write large excel 2007 files with hundreds of rows exported from database. Here is the link to it: http://vikramvkamath.blogspot.com/2010/07/writing-large-excel-files-excel-2007

Importing XML Crashes Excel

末鹿安然 提交于 2019-12-05 15:56:04
I have had this recurring problem with all of my spreadsheets for months. The spreadsheet will be working fine and importing the xml files fetched from our website, then all of a sudden it will start crashing everytime on import. The only thing that fixes it is to take all of the contents (sheets, code, references) and drop them into a fresh workbook. This is the line it crashes on. ActiveWorkbook.XmlImport URL:=l_strXMLFileName, _ ImportMap:=Nothing, Destination:=Sheets("Imported Data").Range("$A$1") Has anyone had this problem? If so, is there a better way to keep it from crashing?? I posted

Spreadsheet Parser in Java/Groovy

佐手、 提交于 2019-12-05 15:28:32
Hi I'm looking to parse spreadsheets (xls/ods) in Groovy. I have been using the Roo library for Ruby and was looking to try the same tasks in Groovy, as Java is already installed on a development server I use, and I would like to keep the number of technologies on the server to a simple core few. I am aware that the ods format is zipped XML, and so can be parsed as such, but I would like to process the file using spreadsheet concepts, not XML concepts. The ability to process xls files is not of major importance, but would save me having to save multiple xls files to ods (as this is for parsing

Excel VBA code to select non empty cells

怎甘沉沦 提交于 2019-12-05 14:34:47
In Excel, let's I have data in B2 to B7 and C2 to C7 . In VBA I can write a macro to select it: Sub Macro1() Range("B2:C7").Select End Sub How do I rewrite the code so that it chooses automatically the cells that are non-empty? If I delete the data in cell B7 and C7 then I want the macro to select only Range(B2:C6) And if I add data to Cell B8 and C8 then I want the macro to choose Range(B2:C8). My data will always start a B2,C2 and I will not have any free space between data. your data always start at B2,C2 and has no empty cell inbetween? If so you can set a variable to be the "last filled

Copy/paste data validation in Google Spreadsheets

二次信任 提交于 2019-12-05 12:28:23
I feel a bit silly not being able to figure this out. So this is the data validation I have set up: Cell Range: Journal!J2 Criteria: List from a range - Journal!W2:X2 Cell Range: Journal!M2 Criteria: List from a range - Journal!Y2:AA2 This is great in my first row. I create another row and I'd like it to update all of the '2' to '3'. The cell range updates correctly, but the criteria does not, and I can't figure out an easy solution other than going in and updating it manually. I've tried copy/paste as well as paste special -> data validation. I know something like $Y$2 would fix the row/col

When to switch from Spreadsheet to RDBMS?

烈酒焚心 提交于 2019-12-04 23:15:28
问题 I've volunteered with a Non-Governmental Organization to help with their record-keeping at their community centre. At present, there is only one community centre where all their data is stored. However, this is expected to change by the end of the year. Presently their data is maintained using a workbook with two sheets. Each record in the main sheet may have upto 100 follow-ups in the follow-up sheet. Data is loosely structured, and there are no explicit constraints. Moving all existing data

Create or Open native Google documents using GoogleDriveApi

微笑、不失礼 提交于 2019-12-04 20:09:48
I have been closely following the documentation for the Google Drive Android API and, all works great. I can create new text documents and read them back in using the mime type of text/plain . What I cannot do is create a native Google "Document" or "Spreadsheet." Actually, I can create them by using the mime type to application/vnd.google-apps.document or application/vnd.google-apps.spreadsheet as per Supported MIME Types documentation. If, however, I try to write content to these documents, the documents never get uploaded. If I try to read documents that have content (content I created via

Check for day range and no

喜你入骨 提交于 2019-12-04 19:57:28
I have the following data sheet: As you can see I have a date and a no which is a string. Now I want to filter out all dates which have the same number in a +-20 day intervall around the date. So for example: If the 12.2.2014 has the value a then it gets a 1 and if the 3.2.2014 has the value a it gets also a 1 . In contrast if the value 15.1.2014 has the value a it gets a 0 because it is not in the +-20 day range . If there exists two rows like in the example below with 10.07.2002 and value d then it gets a 0 because there is no other day in a 20 day intervall around it. My implementation idea

How can I store a range of cells to an array?

空扰寡人 提交于 2019-12-04 16:17:59
If I have a list of data in cells A1:A150 (but the amount can vary), is there a way to push that into an array without looking at each cell individually to determine if it is empty? I exceed my execution time by doing this and I need a faster way to store the data and stop when it hits an empty cell. Below is how I currently do it: for (var i = 1; i < 500; i++) { if(datasheet.getRange("A" + i).getValue() == ""){ break; } else{ addedlist_old.push(datasheet.getRange("A" + i).getValue()) } If you're using only one column, I'd suggest: // my2DArrayFromRng = sh.getRange("A2:A10").getValues(); var

Database : best way to model a spreadsheet

独自空忆成欢 提交于 2019-12-04 14:18:31
问题 I am trying to figure out the best way to model a spreadsheet (from the database point of view), taking into account : The spreadsheet can contain a variable number of rows. The spreadsheet can contain a variable number of columns. Each column can contain one single value, but its type is unknown (integer, date, string). It has to be easy (and performant) to generate a CSV file containing the data. I am thinking about something like : class Cell(models.Model): column = models.ForeignKey