import-from-excel

Import two columns from Excel into existing Access2010 table gives error using transferspreadsheet

限于喜欢 提交于 2019-12-12 06:31:12
问题 I have an excel spreadsheet, with 12 columns, where I only need to import data based on the last two (The rest are needed to fill out the last column.) Excel table Acces table As shown on the picture I have a table in Access called "ProjektDelledning" where the two columns DelledningID and SaneringsmetKode are already present. If a DelledningID is already present it needs to update the SaneringsmetKode, if it isn't present in the table, it needs to add the value. So Delledning 258 should have

Quotation marks when zoo to xts using as.xts() in R

淺唱寂寞╮ 提交于 2019-12-12 05:47:49
问题 When transforming the below data (class "zoo") into xts, I use returns.xts<-as.xts(returns) . The effect is to add quotation marks around the new Data. And then becomes unusable in functions. Why is this? class("zoo") UK.EQUITY EUR.EQUITY NA.EQUITY ASIA.EQUITY JPN.EQUITY EM.EQUITY WORLD.EQUITY.EX.UK 2006-04-30 0.010552982 -0.003337229 -0.033739353 0.025092643 -0.020920633 0.020016007 -0.021165353 2006-05-31 -0.048962517 -0.071924029 -0.059684763 -0.102475485 -0.098121902 -0.141877111 -0

Cannot import data from excel 2003 to database using openrowset function

核能气质少年 提交于 2019-12-12 03:16:15
问题 This is my laptop spec : OS : Windows 7 - 64bit , Database : SQL SERVER 2008 R2 , Microsoft Office : Microsoft Office 2007, My problem is : When I run my procedure to import data from excel 2003 (xls) to database (SQL Server 2008) , I've got this error : <span style="color:red">OLE DB provider 'Microsoft.Jet.OLEDB.4.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode.</span> this is my procedure : SELECT * FROM OPENROWSET(

java.util.concurrent.CancellationException while saving Datastore Entities

邮差的信 提交于 2019-12-11 21:37:04
问题 I'm trying to process a big excel file with more than 20K rows. Each row should be saved as an Entity in Datastore. First, I get the excel file in my servlet using the Blobstore and then I queue a task using the Task Queue service. This task, reads the excel file, convert each line in an Entity and store it. As I said before, Excel file could have more than 20K rows. After a while I get this exception: com.xxx.xxx.ProcessBlob doPost: |POST|ProcessBlob|Exception:Task was cancelled.|Msg:Task

How to edit only the Firstname (givenName) of multiple users and import with csv

筅森魡賤 提交于 2019-12-11 16:19:01
问题 If I have a list of users where the samAccountName for all the users are all numerical Example, 745744, 745746, etc…. I was looking for a powershell script that could accomplish the following: Put an “XX” without quotes in front of the users first name/givenname Have the script import the list of users from the csv file if I have a list of all the users samAccountName. Is having only one column in excel with the samAccountName sufficient for the csv, or do i need to also have all of the users

Import Folder of xlsb files into R

妖精的绣舞 提交于 2019-12-11 05:35:28
问题 I have a folder of daily report in Excel XLSB format, now I am trying to import all files in the folder and bind into one data frame in R. I have experience with importing a folder of multiple CSV files into R, the code as below: library(tidyverse) setwd("C:/Folder_Path") file_path <- list.files(pattern="*.csv") combined_df <- lapply(file_path, read_csv) %>% bind_rows I tried to implement this code into this case to import XLSB files, the spreadsheet I need is "Sheet1" and the header starts

External table is not in the expected format when Excel file is closed

ぐ巨炮叔叔 提交于 2019-12-11 02:59:49
问题 My import works well with an .xls file, but it doesn't work with an .xlsx that I have created in Excel 2010, unless it is opened. My code looks like this: public static DataSet Sheets(string filePath, bool header) { DataSet dsResults = new DataSet(); string hasHeader = header ? "YES" : "NO"; OleDbConnectionStringBuilder sbConnection = new OleDbConnectionStringBuilder(); String strExtendedProperties = String.Empty; sbConnection.DataSource = filePath; if (Path.GetExtension(filePath).ToLower()

While Reading the data from Excel file with extension xlsx using apache poi it takes long time

跟風遠走 提交于 2019-12-11 02:58:02
问题 While reading the excel file with extension xlsx using apache poi it takes the long time for identifying the extension. Can you please help why it takes the long time? if (file.getExcelFile().getOriginalFilename().endsWith("xls")) { workbook = new HSSFWorkbook(file.getExcelFile().getInputStream()); } else if (file.getExcelFile().getOriginalFilename().endsWith("xlsx")) { workbook = new XSSFWorkbook(file.getExcelFile().getInputStream()); } else { throw new IllegalArgumentException("Received

Getting Cells with Formulas in Excel file

拟墨画扇 提交于 2019-12-11 02:54:01
问题 I am trying to read formulas of cells currently I am reading all cells in sheet which takes too much time. How can I only select those cells which have formulas. Here is the code I am using foreach (Excel.Worksheet workSht in xWorkBook.Worksheets) { for (int rCnt = 1; rCnt <= workSht .Rows.Count; rCnt++) { for (int cCnt = 1; cCnt <= workSht .Columns.Count; cCnt++) { string str = (string)(workSht.Cells[rCnt, cCnt] as Excel.Range).Formula; if (str.Contains("_R*")) { if (File.Exists

How to read excel Unicode characters using Python

a 夏天 提交于 2019-12-10 15:56:13
问题 I am receiving an Excel file whose content I cannot influence. It contains some Unicode characters like "á" or "é". My code has been unchanged, but I migrated from Eclipse Juno to LiClipse together to a migration to a different python package (2.6 from 2.5). In principle the specific package I am using has a working version on win32com package. When I read the Excel file my code is crashing when extracting and converting to to strings using str(). The console output is the following: