excel

Convert Date Format

User updated in Excel as 01-03-2010 (as in DD-MM-YYYY). How do I covert this into YYYYMMDD in SQL? I have tried using FromDate=Format(Sheet1.Range("A3"),"yyyymmdd") and when I executed the SQL statement, it doesn't show any result. ...

Convert row with columns of data into column with multiple rows in Excel

I hv rows of data:- TAG SKU SIZE GRADE LOCATION A001 123 12 A X1 A002 789 13 B X3 A003 456 15 C X5 I need to convert it into:- A001 123 SIZE 12 A001 123 GRADE A A001 123 LOCATION X1 A002 789 SIZE 13 A002 789 GRADE B A002 789 LOCATION X3 A003 456 SIZE 15 A003 ...

How to add new column at the beginning of worksheet to an existing excel using microsoft interop

Hi I have an excel with 8 columns. I'm trying to add a new column at the beginning of the worksheet. The existing columns should shift. Below is the code which I tried: OpenExcelWorkbook(@"d:\TLC\TLC3.xlsx"); _sheet = (Excel.Worksheet)_sheets[1]; _sheet.Select(Type.Missing); _sheet.Co...

In MSExcel-How the single quotes are applied to the sheet name in a formula?

Hi MSExcel Outstanders, I got a big doubt while working with MSExcel,I have created a very big formula which has many symbols and it total string length is about 8047 in Excel 2007 and while i have surfed i have seen that the maximum no of characters allowed for a formula is 8129 and also i have extracted the created excel file and i co...

add hours in excel based on 8 hrs

Hi, In my excel I have the project status in hours only . it means M1 4 hrs M2 6 hrs M3 10 hrs M4 3 hrs I have to create a excel so that if I give a start date all the simillar dates needs to be calculated based on 8 hrs working time. for example if my start date 09/01/2010 (this is the date entered by me)(mm/dd/yyyy) ...

Creating a dashboard in exel

Hi guys, I am looking at creating a dashboard in excel using several key performance indicators to plot a graph, the data would just be collected from another sheet in excel. I understand that you can do this in conjunction with macros but my experience with macros is limited although I am willing to learn. Any help would be great! Th...

Calculating points from 0-10 for achived time

I have a Google Spreadsheet with a value (in seconds) for a lot of teams. I want to calculate points for each team from 0-10: 10 points for the team with the lowest value, 0 points for the team with the highest value and 9-1 points for the values in between (evenly distributed). I honestly can't think of any formular to do this...and I ...

How to wrap comment.text in vba

I have a situation in which text in one of the cells is massive.When I change the contents of this cell the previous value becomes a comment to that cell.Now the problem is, this text is so big that I cannot see complete text.If I use .Shape.Textframe.Autosize=true then I have to go on browsing till god knows when to see the text. What ...

connecting to access data base and write to table

I have an excel invoice sheet and I want to write the information from the invoice to a table in an Access file. My following code is: Private Sub Button66_Click() Dim con As New ADODB.Connection Dim connectionString As String Dim sql As String connectionString = "DBQ=c:\Users\Public\Public Desktop\InvoiceRecords.mdb; Driver={Microsof...

Fastest way to map a list of names in an excel doc to their IDs in a lookup table?

For one of my projects I display a list of counties in a drop down list (this list comes from a lookup table containing all counties). The client just requested that I limit it to a subset of their choice. The subset was given to me in an excel spreadsheet containing only names (seen below): I'm trying to figure out the quickest way...

excel prefix formula F#

I have a simple Excel spreadsheet where each cell either contains nothing, a value, or a simple 2 argument formula of the form Function(Cell,Cell), (e.g. cell A3 might have the formula "=A1 + A2") I would like to be able to open an Excel file using F# and for any cell get: 1 - null (because the cell has no value and no formula) 2 - de...

Handling Excel file in Java

I have a Excel file that I have to read the file and go line by line and check the first column. Here is an example of the column headers ISBN#13 Run Date Title Author Type So I have to check each ISBN#13 and determine if it is an isbn#13, format it and write the whole line to a file. Then take all the ones that are not ISBN#13...

how to read (or parse) EXCEL comments using python

I have several excel files that use lots of comments for saving information. For example, one cell has value 2 and there is a comment attached to the cell saying "2008:2#2009:4". it seems that value 2 is for the current year (2010) value. The comment keeps all previous year values separated by '#'. I would like to create a dictionary to...

BIFF5 Excel - Pointing to XF and FONT records from LABEL record

Hi all, I'm using the FireFox API to write to a binary file from my JavaScript based FireFox extension. So far I am fully able to write the information to the file in BIFF5 format, and re-size the columns successfully. The problem I'm running into is no matter what I try, I can not seem to get the XF index (ixfe) in the LABEL record t...

How do I read the values of Excel dropdowns or checkboxes from c# or vb.net?

I'm using Microsoft.Office.Interop.Excel to read the values of cells of a worksheet, but I'm unable to find information that shows how to read dropdowns, checkboxes and option buttons. Thanks! ...

Accessing Excel files from asp.net

I've accessed excel files using desktop applications using OleDbReader, interop, and the latest (and my fav), ling-to-sql. However, this time I need to do so from a Web application using asp.net with C# code behind. I don't need to create excel files, only read them. Is it possible to do this with a .xls(x), or should I be shooting fo...

how do i generate a valid upc?

does anyone know if it is possible to generate a valid upc? if so, how? is it possible to do it in excel / python / .net? the platform does not matter to me ...

BIFF5 - Excel - Workbook Stream Problems (corrupt file)

Hi all, I am successfully writing to an Excel file, using javascript from my FireFox extension. I can get the formatting, and contents that I want, however I have run into a roadblock. In order to add the formatting, I have to EOF the Workbook Globals Stream, and BOF the worksheet stream. When I do that Excel says the file is corrupt. ...

store and download the excel file in php

hi please check my coding for create the excel file and download. header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); hea...

MIME Types and exporting to different applications (excel, word , pdf ...etc etc)

i was wondering what really happen behind the scene when i write a file with mime type like this application/vnd.ms-excel i mean i export to excel like this: gridView.Page.Response.Clear(); gridView.Page.Response.Buffer = true; gridView.Page.Response.AddHeader("content-disposition", "attachment;filename=G...