excel

Excel VBA to Update SQL Table

Hi All, I have a small excel program that is use to upload data to an SQL server. This has been working well for a while. My problem now is that I would like to offer to users a function to update an existing record in SQL. As each row on this table has a unique id columne. There is a column call UID which is the primary key. This ...

Problem saving excel file after inserting data

Hi, I want to write data to an existing excel file ( I do it easily ) But I can not save the changes on the excel file ( actually I see the changes on the excel file, but it seems opened and after all it occurs some problems such as "the file is already opened with same name and so on ... ) Excel.Application app= new Microsoft.Office...

a question on using Microsoft Excel to do data analysis

Hello everyone there, Me and my mates have been given an Excel spreasheet,which contains the data of the Census report. The column here corresponds to "Year" (from 2000-2010),the row means "City/Town",the cell is simply the population of a town at a particular year. We are up to doing some analysis like “what town had its first populati...

Tamper Proof Excel Document using java

How to create tamper proof Excel document using java? Now i am using Apache POI package for generating Excel documents. Help Me Bravos .... ...

How to apply formula to cell based on IF condition in Excel

Hi I have an Excel spreadsheed like the one shown below A B 10.02.2007 10 10.03.2007 12 Column A is date and B is price of share Now my task is calculate financial return of share using formula return = ln(price_today / price_yesterday) Now in another sreadsheet I need to create a new column called Return In thi...

Importing a spreadsheet into an asp.net program and listing the worksheets

I have to import the contents of a spreadsheet in my asp.net project. The code behind is c#. I figured out how to locate the spreadsheet on the user's computer and how to import the data from a given worksheet into a datable. The problem is I may not know the name of the worksheet ahead of time. How do I present the user with a list of a...

find a Stationary points Excel

Hi, I am looking for a funcation in excel that will show my the Stationary points in th table. for exapmle A point is the lowest point on the table B point is the highest point - after point A C point is lowest point -after point B . on the X there are point A,B and C, on the Y there are dates . I hope it is clear - i diddn't f...

How to populate data from .txt file into Excel in VBA?

I'm trying to create something to read data from a .txt file, then populate data into .xls, but after open the .txt file, how do I get the data out? Basically I'm trying to get the the third column of the lines dated '04/06/2010'. After I open the .txt file, when I use ActiveSheet.Cells(row, col), the ActiveSheet is not pointing to .txt ...

where can I find a good ruby excel parser that also had good documentation?

Hi All, I've spent some time today looking for a pure ruby library that will parse an excel workbook. I could find the parseexcel gem in the repos, but the problem is that I can't find any documentation on it. and the rdoc is pitiful. so, my question is 1) is there good documentation out there for this gem? 2) if not, is there another g...

Change a name field from LAST FIRST ordered to FIRST LAST ordered.

I have an excel spreadsheet with about 700 entries. The names are listed as "DOE JOHN" (no comma separating the names). I need to format them so they read JOHN DOE. 1.) I would like to learn how to do this in excel. 2.) I would like to learn how to do this in linux. Thanks! ...

Selecting multiple columns and rows for formatting - Excel

I have a report which I used the command subtotals. Aesthetically, I just want to make these subtotal rows (columns A to P) filled with color, be in Bold and have a surrounding border. There are hundreds of totals generated in my report. And they do not have a recurring row position. So basically in order for it to look good, I do it man...

How to read excel file in vb.net 2003

Can anyone help me on how can I read the excel file using vb.net 2003? The first thing to do is to browse the excel file in my vb.net program then read the content of excel file and display the value of excel content in listview. ...

Disable popup message in php

When i upload a excel file, i have used COM() to open and automate converting it to xml. It works fine, But when i run it, it always shows the message from Microsoft Excel: A file named ''' already exists in this location. Do you want to replace it? I can choose between Yes No and Cancel. normally i would choose Yes. But i dont want us...

Excel Source in SSIS Column limitations

Can we import data from Excel with more than 256 fields in to a SQL database using SSIS. If so is there any trick for this, as I couldn’t see more than 255 columns in the column selection at Excel source in SSIS ...

Errors in Excel extraction from Java using Apache POI cause need to restart service

I'm using Apache POI for extracting data from Excel into java. If there any error happens while the page is loading, then we have to restart the tomcat service. For example, I am extracting the data from Excel, if excel has no issues, then the incoming data is correct. If there is any error I get a null pointer exception, and after that...

asp code for upload data

hello everyone i have this code for uploading an excel file and save the data into database.I m not able to write the code for database entry. someone please help <% if (Request("FileName") <> "") Then Dim objUpload, lngLoop Response.Write(server.MapPath(".")) If Request.TotalBytes > 0 Then Set objUpload = New vbsUpload For lngLoop ...

Unable to change the range of source data in Pivot Table in Excel VBA at run time

Hi All, I want to change the source data of my PivotTable in the code at run time. Please let me know how do i do that. Regards, Vikram. ...

Date Difference, Excluding certain Times and Dates

Hi Folks. I'm looking for a way to determine the difference between two dates. A normal SQL DATEDIFF statement won't cut it because I need to excluded non working Hours and days Namely Weekends and any time between 16:00 - 7:00. Something similar to the NETWORKDAYS function in excel. I'm codeing an excel spreadsheet. Using VBA connec...

sp_addlinkedserver procedure not linking Excel source

I am attempting to link an Excel source to a SQL Server DB on the Go Daddy website.  When I execute the sp in SQL Server, it shows it executed successfully, but no data is linked. This is the main part of my procedure:      EXEC sp_addlinkedserver @server = 'XLHybrid', @provider = 'Microsoft.ACE.OLEDB.12.0',    @srvproduct ...

Insert Datavalidation Formula in Excel using Asp.net c#

Hi I want to insert Datavalidation Formula in Excel using Asp.net c#? How To Achive this? in Excel mau=nually i am doing data-Datavalidation -allow --list --Source ==$AL$24:$AL$57 i want to itis programmatically? MuthuRaj [email protected] ...