Microsoft Excel is a commercial spreadsheet application written and distributed by Microsoft for Microsoft Windows and Mac OS X.

learn more… | top users | synonyms

4
votes
1answer
32 views

Excel sheet code is taking too much time

I have an Excel sheet with lot of rows with data. I am separating it into 2 sheets with some condition satisfies. This is taking too much time. How can I improve the speed? Please suggest any ...
8
votes
4answers
299 views

Looping through an Excel document in C#

Before looping through an Excel document using a library I found, and wanted to know how long it would take to loop through the whole thing. There are 40k rows. I looped through only the first 5k ...
4
votes
1answer
91 views

Ruby script to load xlsx files into mysql db

I put together this Ruby script (1.9.3) to load data into MySQL from many xlsx files that contain data entered by people. These files typically have many illegal characters and it has been difficult ...
4
votes
2answers
70 views

More efficient update macro in Excel

So I have a macro that makes comparisons and then this macro exports all of the changes based on if the information doesn't match. I have it so that each column gets their own worksheet in the new ...
10
votes
2answers
178 views

Creating Excel document is very slow

Attached is a generic code I wrote to create an Excel file with x number of worksheets. The problem I am having is that it's pretty slow, like 5 seconds a sheet. It was my understanding that using a ...
1
vote
0answers
21 views

Excel Mapping Module

I wrote this bit of python intending it to become some module to replace excel mapping programs like MapForce. Right now it only does columns to columns. So the number of rows in always equals the ...
7
votes
1answer
61 views

Importing data from an external EXCEL-Sheet

I was assigned the task of copying some subsums from a given EXCEL-Sheet into the executing EXCEL-Sheet. This had to be done with an EXCEL-Macro, so non-programmers can easily use it. There was the ...
4
votes
2answers
77 views

Writing a JTable to a tab delimited file

I have wrote this class that will write JTable to a tab delimited file so that it can be opened in Excel. It works great but is there any way to make it better or is there a way to have it directly ...
0
votes
1answer
60 views

Better implementation of Excel's SUMIFS using pandas, the Python Data Analysis Library

I've implemented Excel's SUMIFS function in pandas using the following code. Is there a better—more Pythonic—implementation? ...
10
votes
2answers
220 views

Suspiciously redundant Excel macro code

I need a little help in finding a better solution. In the screen shot below any change to the forecast line I need to find the value in column B. The screen shot is only a sample in my production ...
2
votes
2answers
85 views

Updating tables with bulk of data through CSV

My work is pretty simple. I have to migrate a bulk of data into the specified tables, so that the data does show up at the front-end. The data is provided through the ...
1
vote
1answer
29 views

Excel to SQL Upload

Aim: Import Excel to SQL Potential Issue: Wrong file type - this is handled in the 'upload' button by not allowing anything but *.xlsx files The wrong type of Excel file i.e. not 2003 onwards, ...
4
votes
0answers
38 views

ABAP Excel data analyzer

I wrote this code years ago to analyze Excel data coming in from the clipboard. Please review for performance concerns and maintainability concerns. One minor note, from an OO perspective, a class ...
3
votes
0answers
156 views

XLSX writer implementation

We have multiple scripts which write into XLSX with the same format, into a different format or slide variation. I am trying to write an API which saves time for other programs, but I need input on ...
2
votes
3answers
616 views

Winform that exports a datagrid to Excel

I've just created a winform that exports a datagrid to Excel. Originally the file was never shown, but I was asked to give the option. So I put in a checkbox and modified the code. Is my if/else ...
8
votes
1answer
210 views

How to avoid the repeat of the code?

Can someone help me please to change the code to an professional one. I try my best to find something similar, but I wasn't successful. I want to avoid the repeat of the code for every single value ...
4
votes
1answer
62 views

How toTighten up and improve a bastardized Excel VBA code

I have the following code. It's purpose is to add up and sort another columns Data. I tweaked it to fulfil my purpose, but I'm sure it can be cleaned up. The only problem I have with its function is ...
6
votes
1answer
204 views

Excel: String Tokenizer

I am trying to implement strings tokenizer in Excel via UDF using C# and Excel-Dna. Personally I found the mIRC's function $gettok pretty useful due to the lack of string functions in Excel. Examples ...
2
votes
1answer
179 views

reading Excel (93-97) sheet with more than 65536 rows using cfspreadsheet

I have a process that reads multiple sheets from an Excel file, then inserts the data into a database table. However, I am experiencing some memory issues when one of the sheets contains more than ...
4
votes
2answers
120 views

Procedure too long. Cannot execute. How to make it shorter and more effective?

My code is too long and cannot be executed. It simply searches for an empty row in a given destination. If it is empty, it performs certain actions (copying, pasting, etc.). If it is not empty, it ...
4
votes
1answer
107 views

Is brute force the accepted best practice for handling Excel COM 'busy' exceptions?

Following on from a question about handling-com-exceptions-busy-codes I would like to know if the following model is the accepted best practice of handling Excel COM busy messages when accessing the ...
3
votes
1answer
161 views

Is there a better or more elegant way to code this CSV cell-parser (using CSVReader)?

I'm currently doing my first internship and had to create an application that will check through the first row of a CSV for valid or invalid input. Is there a more elegant way to code or to refactor ...
3
votes
1answer
2k views

Multiple criterias in a VLOOKUP in Excel VBA

I have made the following custom defined function in Excel. It works somehow like VLOOKUP(), but it takes two criterias. I think the code is a bit of a mess. Does anyone has any comments, suggestions, ...
6
votes
1answer
741 views

How to make this ping test with timer more efficient?

I wrote a small ducktaped VBA script which pings servers every 15 mins or so. If a server's status is anything other than "Alive", the server and timestamp is written to another worksheet called ...
0
votes
3answers
310 views

speed up merging worksheets and using find/replace

Of all the macros that i put into heavy rotation these days, this one is running the slowest. ~4-5 seconds depending on the size of the files. It's not a lot but i'd like to know why code 16x as long ...
3
votes
2answers
292 views

better way to remove from collection in excel vba

In my vba code, I am trying to generate a specific list of cell row positions. Basically how i do that is I first fill a collection with the entire list of row positions pertaining to a specific ...
5
votes
4answers
859 views

Improve VBA code Excel

Im looking for someone who can improve my code, because at the moment it takes 4 minutes to execute. I'm new to VBA so it's probably bad coding. Normally if you are good in VBA you will understand the ...
1
vote
2answers
474 views

Excel instances: release and kill

Please check my code below. I don't have any problems but I'm not aware how far the code will work, release and kill excel instances.. ...
1
vote
2answers
5k views

Populate ComboBox

How could I make this code shorter and faster? ...
4
votes
1answer
392 views

Copy Excel formula in a relative way

I use NPOI to copy Excel formula, but can't find an option to do it in a relative way. Therefore, I've written a function to implement it. The task is "easy". When ...
7
votes
5answers
374 views

Managing book of Excel sheets

This is a follow-on from a previous question I posted here. I've got code here that works for what I want, but the problem is the loop takes ages to perform. I was wondering if anyone could follow ...