spreadsheet

Read csv with two headers into a data.frame

ぃ、小莉子 提交于 2019-11-28 09:17:22
问题 Apologies for the seemingly simple question, but I can't seem to find a solution to the following re-arrangement problem. I'm used to using read.csv to read in files with a header row, but I have an excel spreadsheet with two 'header' rows - cell identifier (a, b, c ... g) and three sets of measurements (x, y and z; 1000s each) for each cell: a b x y z x y z 10 1 5 22 1 6 12 2 6 21 3 5 12 2 7 11 3 7 13 1 4 33 2 8 12 2 5 44 1 9 csv file below: a,,,b,, x,y,z,x,y,z 10,1,5,22,1,6 12,2,6,21,3,5 12

Selecting non-blank cells in Excel with VBA

穿精又带淫゛_ 提交于 2019-11-28 09:14:31
I'm just beginning to dive into VBA and I've hit a bit of a roadblock. I have a sheet with 50+ columns, 900+ rows of data. I need to reformat about 10 of those columns and stick them in a new workbook. How do I programmatically select every non-blank cell in a column of book1, run it through some functions, and drop the results in book2? The following VBA code should get you started. It will copy all of the data in the original workbook to a new workbook, but it will have added 1 to each value, and all blank cells will have been ignored. Option Explicit Public Sub exportDataToNewBook() Dim

Open Office Spreadsheet (Calc) - Concatenate text cells with delimiters

亡梦爱人 提交于 2019-11-28 06:32:35
I am using Open Office's spreadsheet program and am trying to concatenate several text cells together with delimeters. For example, suppose I have the cells below: +--------+ | cell 1 | +--------+ | cell 2 | +--------+ | cell 3 | +--------+ | cell 4 | +--------+ | cell 5 | +--------+ I would like to concatenate them with delimiters so that the result is in one cell like this one: +----------------------------------------------+ | (cell 1),(cell 2),(cell 3),(cell 4),(cell 5) | +----------------------------------------------+ My first thought was to try and make a macro or something, but I don't

PHPExcel very slow - ways to improve?

倾然丶 夕夏残阳落幕 提交于 2019-11-28 03:23:24
I am generating reports in .xlsx using PHPExcel. It was okay in the initial testing stages with small data sets (tens of rows, 3 sheets), but now when using it on a real production data with over 500 rows in each sheet, it becomes incredibly slow. 48 seconds to generate a file, and when running a report that combines more information, the whole thing fails with Fatal error: Maximum execution time of 30 seconds exceeded in PHPExcel/Worksheet.php on line 1041 . Sometimes it's in another PHPExcel file, so I doubt the exact location is that relevant. Ideally, I would want to speed it up somehow,

How to format spreadsheet columns using ColdFusion?

佐手、 提交于 2019-11-28 02:00:39
I am using SpreadsheetFormatColumns() to format the columns in a spreadsheet to "text", but I don't know how to do this, all the formats in the livedocs are for numbers, currency or dates... is there something like SpreadsheetFormatColumns(mySpreadsheet, {dataFormat="text"}, "1-15") out there? this is really bugging me... Thanks In ColdFusion 9.0.1 (i.e. updater 1), if you use SpreadsheetSetCellValue() it will respect the format you have previously set. So to force a column to be text when populating a sheet you can use a 3-step process: Populate the spreadsheet, ignoring the incorrectly

How do I read the content of an Excel spreadsheet using Ruby?

核能气质少年 提交于 2019-11-27 18:25:07
I am trying to read an Excel spreadsheet file with Ruby, but it is not reading the content of the file. This is my script book = Spreadsheet.open 'myexcel.xls'; sheet1 = book.worksheet 0 sheet1.each do |row| puts row.inspect ; puts row.format 2; puts row[1]; exit; end It is giving me the following: [DEPRECATED] By requiring 'parseexcel', 'parseexcel/parseexcel' and/or 'parseexcel/parser' you are loading a Compatibility layer which provides a drop-in replacement for the ParseExcel library. This code makes the reading of Spreadsheet documents less efficient and will be removed in Spreadsheet

What difference does it make if one runs a VBA code in “Sheets”, in “ThisWorkbook”, and in “Modules”?

陌路散爱 提交于 2019-11-27 18:17:59
问题 What difference does it make if one runs a VBA code in "Sheets" ("Sheet1", "Sheet2", etc.), in "ThisWorkbook", and in "Modules" ("Module1" etc.)? In other words, which one should be used in which cases? 回答1: A module is a collection of similar functions and sub-routines, grouped usually in terms of their functionality. In a module subroutine/function, Private : Functions and Sub-routines are available only within that module. Public : They can be accessed from anywhere, directly. (Another

Send Email when value changes in Google Spreadsheet

眉间皱痕 提交于 2019-11-27 18:11:26
问题 I am trying to figure out, how do the following in Google Spreadsheet. Send email when a value changes in a cell. (Value = Completed). Compile that rows data into the email. See format in code below. Prompt user for confirmation of info. If YES, send email to active user as well as the preset users in the code below. This is optional: Update sheet in row on column (P) 16 with Email Sent + timestamp. Hi Serge, Try to implement the code you provided, but I could not make heads or tails on what

DevExpress v18.1新版亮点——WinForms篇(七)

蹲街弑〆低调 提交于 2019-11-27 13:56:10
用户界面套包DevExpress v18.1日前终于正式发布,本站将以连载的形式为大家介绍各版本新增内容。本文将介绍了DevExpress WinForms v18.1 的新功能,快来下载试用新版本! 点击下载>> Skins and Vector Icons New Skin Selector 随着新版本的Bezier矢量皮肤(提供数十种独特的皮肤预设或色板)的发布,传统的皮肤画廊可能会“感觉”过度拥挤。 我们的新皮肤/色板选择器旨在解决此问题,并为用户提供更直观的方式,将理想的外观应用于其应用。 Office Palettes for Vector Skins 在v18.1中,我们添加了由MS Office启发的四个矢量皮肤面板。 SVG Icon Builder in MS Windows Store DevExpress SVG Icon Builder是一个生成工具,旨在通过结合现有的图形元素来简化自定义SVG图标的创建。您可以直接从Microsoft Windows Store安装它。 Spreadsheet Control Spreadsheet Shapes 从简单的线条和矩形到横幅和标注,WinForms和WPF Spreadsheet控件现在支持所有形状类型。 个别图表系列点的自定义颜色 通过此版本,WinForms和WPF Spreadsheet控件可以显示

DevExpress v18.1新版亮点——WPF篇(五)

寵の児 提交于 2019-11-27 13:55:23
用户界面套包DevExpress v18.1日前终于正式发布,本站将以连载的形式为大家介绍各版本新增内容。本文将介绍了DevExpress WPF v18.1 的新功能,快来下载试用新版本! 点击下载>> Spreadsheet Control Spreadsheet Shapes 从简单的线条、矩形到横幅和标注,WinForms和WPF Spreadsheet控件现在支持所有形状类型。您可以移动、调整大小和删除形状,具有形状的工作表也可以打印并导出为PDF。 自定义颜色单个图表系列点 在新版本中,WinForms 和 WPF Spreadsheet控件可以显示、打印和导出带有包含自定义颜色系列点图表的工作表。 自动完成公式 在新版本中,简化了公式的构造。WinForms和WPF Spreadsheet控件现在支持Formula AutoComplete。此功能可以通过提供与在公式中输入的字符匹配的函数名称,已定义的名称和表名称列表可以防止拼写错误和语法错误。 其他增强功能 自动文档格式识别:在新版本中,如果从文件加载文档而未指定其格式,则Spreadsheet控件会根据其内容自动识别文档格式(无论文件扩展名如何)。 Themes 标准WPF控件的轻量级模板 在新版本中,Office2016SE和VS2017主题使用轻量级模板来呈现标准WPF控件