excel-2010

Can't read Excel 2010 file with Apache POI. First Row number is -1

霸气de小男生 提交于 2019-12-01 10:55:31
问题 I am trying the this testfile with the Apache POI API (current version 3-10-FINAL). The following test code import java.io.FileInputStream; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; public class ExcelTest { public static void main(String[] args) throws Exception { String filename = "testfile.xlsx"; XSSFWorkbook wb = new XSSFWorkbook(new FileInputStream(filename)); XSSFSheet sheet = wb.getSheetAt(0); System.out.println(sheet

Creating Calculated Field with SUM and COUNT of Fields Pivot Table

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 10:44:50
问题 Here's a snapshot of my pivot table. I want to create a calculated field that displays the percentage from the Responded column (C) over the Ticket # column (B) as in column G. The Ticket # column is a column of value text strings (e.g. 413456, 464313) and the Responded column is a list of 1's and 0's. In my pivot table I am taking the count of all Ticket # and the sum of the Responded. I tried to create a calculated field with the following formula =Responded/COUNT('Ticket #') but this gave

Extremely simple formula crashes my program after I insert a line beneath the referenced cell

核能气质少年 提交于 2019-12-01 09:27:48
问题 I originally had code, but now I deleted all code in that project. I have a formula in sheet1 that goes "='Sheet2'!I10". Cool, I save its ok. But the moment that I insert a line beneath I10 on sheet2 and then I go back to Sheet1 click into the formula and do nothing but press the check mark the entire program crashses. With an APPCRASH report...... WHY My Error Report: Problem Event Name: APPCRASH Application Name: Excel.EXE Application Version: 14.0.7179.5000 Application Timestamp: 58a5e2fb

Using conditional formatting to alternate the formatting of data by category

倖福魔咒の 提交于 2019-12-01 09:23:54
I have a spreadsheet with a bunch of rows like this: Name | ID | Category | Attributes... -------------------------------------------------------- name0 | 753 | cat1 | ... name1 | 724 | cat1 | ... name2 | 149 | cat1 | ... name3 | 265 | cat1 | ... name4 | 032 | cat2 | ... name5 | 991 | cat2 | ... name6 | 238 | cat2 | ... name7 | 005 | cat3 | ... name8 | 632 | cat3 | ... name9 | 393 | cat3 | ... And I would like to format it so it's a little bit easier to distinguish the rows of separate categories. I'd therefore like to alternate shading and not shading based on the values in the Category

Date for Previous Monday Excel

…衆ロ難τιáo~ 提交于 2019-12-01 09:02:26
Today is 02/27/2013 which is Wensday. I need formula which will return me date for previous Monday.which would be (02/17/2013) I need to so I can use for file name or email subject in my vba code which sends emails. With oMail 'Uncomment the line below to hard code a recipient .To = "myemail@email.com" 'Uncomment the line below to hard code a subject .Subject = "Current Report" .Attachments.Add WB.FullName .Display End With Public Function LastMonday(pdat As Date) As Date LastMonday = DateAdd("ww", -1, pdat - (Weekday(pdat, vbMonday) - 1)) End Function Weekday(yourdate, vbMonday) returns a 1

SUMIF excluding hidden rows. SUBTOTAL? SUMPRODUCT?

送分小仙女□ 提交于 2019-12-01 08:28:51
问题 I have 2 massive tables of events. The first table is a data table ( tblData ) that has dates, durations, and codes (to identify the event). The second table is a summary table ( tblSummary ) of the total time each event took. How can I filter tblData and update tblSummary ? Below is a small part of tblData . Notice there are 3 columns for Level 2 codes ( L2a , L2b , L2c ); meaning if I am looking for total duration of Level 2 Code " EL ", I have to check all 3 columns and add their Duration

Read excel file 2010 apache poi ignoring empty cells

♀尐吖头ヾ 提交于 2019-12-01 07:41:18
问题 I am having an problem, while java application reading Excel file .xlsx extention, The application is working normally, but in the workbook has many sheets, 1, 2 sheets reading correctly , but when reads 3 sheet, there does not read all the cells and while I opened and checked from Excel file, cell is exists with empty values, but when apache poi reading it the cell is just ignored the empty cells. What is a cause? Update FileInputStream file = new FileInputStream(file_location); //this

Making all pivot tables on one sheet mimic each other in terms of rows expanding and collapsing

旧街凉风 提交于 2019-12-01 07:33:34
Alright, I'm new to VBA but I know this has to be possible. I spent a while coding android applications, but I wouldn't call myself nearly an expert, probably not even intermediate to be honest. However, alas, excel doesn't use java. Here's my problem: All I need is to make 6 other pivot tables on the same sheet mimic what I will call the primary pivot table. The only feature it needs to mimic though (for now I suppose) is when the primary expands/collapses, the others should follow suit. I'm guessing that the code will be similar to an onclicklistener in java and when the code "hears" a click

Using conditional formatting to alternate the formatting of data by category

南楼画角 提交于 2019-12-01 07:05:25
问题 I have a spreadsheet with a bunch of rows like this: Name | ID | Category | Attributes... -------------------------------------------------------- name0 | 753 | cat1 | ... name1 | 724 | cat1 | ... name2 | 149 | cat1 | ... name3 | 265 | cat1 | ... name4 | 032 | cat2 | ... name5 | 991 | cat2 | ... name6 | 238 | cat2 | ... name7 | 005 | cat3 | ... name8 | 632 | cat3 | ... name9 | 393 | cat3 | ... And I would like to format it so it's a little bit easier to distinguish the rows of separate

Excel 2010: Hide 0 values in Pivot

荒凉一梦 提交于 2019-12-01 06:53:50
问题 Is there a way to hide or show a blank cell in a Pivot table for cells that compute to zero? 回答1: Use a number format to hide zero values in selected cells: Follow this procedure to hide zero values in selected cells. If the value in one of these cells changes to a nonzero value, the format of the value will be similar to the general number format. 1.Select the cells that contain the zero (0) values that you want to hide. 2.On the Format menu, click Cells, and then click the Number tab. 3.In