spreadsheet

Reading time values from spreadsheet using poi api

牧云@^-^@ 提交于 2019-11-29 10:04:54
I am trying to read a date column and a time column from a spreadsheet. I am able to retireve the date column from the sheet, but not the time column. For example, my sheet will have rows of the form: date time 11/2/2012 12:15:01 I have the following code to get the date column: while(cellIterator.hasNext()) { HSSFCell cell = (HSSFCell)cellIterator.next(); switch(cell.getCellType()){ case HSSFCell.CELL_TYPE_NUMERIC: HSSFCellStyle style = cell.getCellStyle(); if (HSSFDateUtil.isCellDateFormatted(cell)) { d = (Date)getDateValue(cell); SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd

How can I create an interface similar to an Excel spreadsheet on the iPhone? [duplicate]

大城市里の小女人 提交于 2019-11-29 08:05:41
This question already has an answer here: MS Excel type spreadsheet creation using objective-c for iOS app 4 answers I want to develop an iphone interface, using objective-c, which behaves like an Excel sheet. It would display a grid which can be scrolled vertically as well as horizontally but during a vertical scroll, the first row will freeze, and during a horizontal scroll, the first column will freeze. How can this be done? I am new to iphone development. I'm not familiar with the iPhone's UI classes, but here is what I would do from a conceptual point of view: Create three separate

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

天涯浪子 提交于 2019-11-29 04:20:47
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? 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 module, different macro etc) It is common practice to store utility functions in modules. Option Private Module

Send Email when value changes in Google Spreadsheet

瘦欲@ 提交于 2019-11-29 04:03:15
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 to modify to fit what I needed done. Let me explain it again with below workflow. Send an email when

A more advanced table/spreadsheet SWT implementation

老子叫甜甜 提交于 2019-11-29 01:08:31
问题 I'm developing an application based on Eclipse's Rich Client Platform that relies heavily on the use of tables for showing and editing data. I'm currently using the SWT implementations of Table and TableViewer. My users are forever complaining that it "doesn't work like in excel". Most notably, I can't select a single cell within a row and all rows have the same height. I'm looking for an implementation that addresses these issues. Criteria: Free (as in speech and beer -- I'm a phd student

Retrieve rows from spreadsheet data using google app script

蓝咒 提交于 2019-11-28 19:02:11
问题 I am using Google app script to write form data to spreadsheet. Now I would like to fetch the values from Excel which matches conditions (eg., filtered by date, username) and display them with app script. My spreadsheet has +-------------+-----------+----------------------+ | Date | Username | Comment | +-------------+-----------+----------------------+ | 2012-05-02 | palani | My first comment | | 2012-05-02 | raja | My second comment | | 2012-05-03 | palani | My third comment | | 2012-05-03

Excel VLOOKUP where the key is not in the first column

三世轮回 提交于 2019-11-28 12:47:25
"The range where the lookup value is located. Remember that the lookup value should always be in the first column in the range for VLOOKUP to work correctly. For example, if your lookup value is in cell C2 then your range should start with C." But sometimes I want to be able to do dual-direction lookups. Ie, lookup using a key in column A to get the value in column B AND at the same time, in other formulas, lookup the value in B to get the value in A. The only way I know is to add a column C which mirrors A, then use AB for the first lookup, and BC for the second lookup. But there has to be

Looking to merge two Excel files by ID into one Excel file using Python 2.7

限于喜欢 提交于 2019-11-28 11:33:54
问题 I am new to the Python family and have been trying to solve merge two Excel files for days. I have researched merging endlessly and tried to adapt my code to fit my needs, but it hasn't been working. I was wondering if I could get any help of why my code isn't working. I feel that this could be a common problem to others using Python, so hopefully this will help out others as well. I appreciate any comments! I have two excel files, 'Chinese Scores3.csv' and 'Chinese Scores4.csv' which I am

Do you know of a sophisticated spread sheet like component for Swing

眉间皱痕 提交于 2019-11-28 10:56:29
问题 I need to write a data exploration tool that displays large amounts of data in a spreadsheet format. Salient problem features: Large number of rows -- typically .5 to 1 million 30-50 columns Need to be able to sort on columns Rapidly apply filters -- say hide all rows that have have foobar in them Need to be able to lock rows/cols Thanks. 回答1: The real problem is elucidating the poorly defined row count requirement: typically 0.5 to 1 million . Human beings cannot meaningfully browse hundreds

Adding command buttons to worksheet at run time and also define events

倖福魔咒の 提交于 2019-11-28 10:09:16
问题 I am trying to add an ActiveX command button in my work sheet at run time. The number of command buttons will depend on the number of lines in the work sheet. I plan to give x and y coordinates in the command button property to position them correctly. I understand that we can insert command buttons in user form this way. Private Sub CommandButton1_Click() Me.Controls.Add _ "Forms.CommandButton.2", "CopyOf" End Sub How can we insert command buttons in a work sheet (not user form). Worksheets(