Top "Excel" questions

Only for questions on programming against Excel objects or files, or complex formula development.

Export DataTable to Excel File

I have a DataTable with 30+ columns and 6500+ rows.I need to dump the whole DataTable values into an Excel file.…

c# asp.net excel datatable export
IF - ELSE IF - ELSE Structure in Excel

Requirement : If the string in cell A1 contains "abc" as part of the string Then assign value "Green" Else if …

excel excel-formula
Way to run Excel macros from command line or batch file?

I have an Excel VBA macro which I need to run when accessing the file from a batch file, but …

excel vba batch-file command-line
Excel how to find values in 1 column exist in the range of values in another

I have two columns- column A which extends upto 11027(values) and column I which extends to 42000(values).Both the columns …

excel excel-2007 excel-formula excel-2010 vba
How can I open an Excel file in Python?

How do I open a file that is an Excel file for reading in Python? I've opened text files, for …

python excel
ImportError: No module named win32com.client

I am currently using python 2.7 and trying to open an Excel sheet. When using the code below: import os from …

python excel win32com
Get length of array?

I'm trying to get the length of an array, yet I keep getting this error: Object required Am I doing …

excel vba ms-access
Exception from HRESULT: 0x800A03EC Error

I am getting "HRESULT: 0x800A03EC" error when running Excel add-in with following code: Excel.Range rng = ActiveSheet.Cells[…

c# excel exception interop add-in
Writing a string to a cell in excel

I am trying to write a value to the "A1" cell, but am getting the following error: Application-defined or object-defined …

vba excel excel-2007
Export data from R to Excel

I am writing codes to export database from R into Excel, I have been trying others codes including: write.table(…

r excel r-faq