Getting information from multiple excel files - excel

So you have two directories ../main/sub1 and ../main/sub2
The main excel file is in main and I want to get information from all the excel files in sub1 and in sub2, but I do not know the names of these files, would it be possible to make a formula that would basically do this a1+a2 for every file and combine them all together in one cell?
Sorry of my explanation is poor. Also anyone have any good resources for learning excel and multiple files, thanks.
edit: Basically a lot like this https://support.office.com/en-us/article/Connect-data-in-another-workbook-to-your-workbook-3a557ddb-70f3-400b-b48c-0c86ce62b4f5 but more dynamically

Related

Vba code in original file to track all copied files

Is it possible to insert a code so we can track all copied excel files in the future?
The reason why: we are creating a template excel file that people can copy and fill in. The problem is that they regularly have to fill in the same information so instead of starting from the template they copy the already filled in template.
If we decide to change the template, we want to change all the files that were copied so there are no multiple versions going around.
All the files are stored on a server in subfolders so We can access them all. Titles of the file will vary based on the wishes from the customer.
After reading you, I see that:
Summary:
You have one single Template that everybody copies
You store all the filled templates on one Server Subfolder
Title of the Files varies from Customer's needs
Challenges:
For Performance shake, you might need of a program than Excel to manage those files
Otherwise, it is possible to use Excel VBA, but is somehow/enough complicated so you would need to have an advanced skills and enough time to write everything handling that Subfolders' file renaming if you wish to collect the data in one Single Excel.
Suggested Solution:
I recommend you to have A Locked Worksheet + Workbook Excel
Template so your customers won't be able to edit its structure and
it will keep all of your templates to be the same.
You better have some kind of the Standard in the nomenclature of your Excel Files which will help you use that description later on for search/filter/sorting ...
You can have a Reset Button as well within the Template where your customers will click and will empty all the fields effortless.
In short, If you wish to track of files being copies, you would need more than Excel VBA for that as you need to play with A windows service for you to track them.
Hope this will give you some ideas. All the Best!

CSV and Excel Advanced File Properties

Looking around there are many examples on how use VBA to populate a listbox in Excel with the files found in a folder, filtering for files based on criteria.
My first question is it possible to filter files based on their advanced properties such as Category / Comments etc?
The second question is it possible to amend the advanced properties from within Excel using VBA without opening them?
I am not looking for someone to write the VBA (although I admit I may need some help in the future if I get stuck) but rather if the concept is feasible. What difficulties may be encountered or things to avoid etc.
Thanks

Node.js script for editing a .xlsx file

I have a large .xlsx file where each row contains a person's name and various other information. Some rows have duplicate entries throughout the file. I'd like to create a Node.js script that parses the file and deletes the rows with duplicate entries. What is the easiest way to go about this?
I have found Sheet.js to be the easiest way to interact with Excel files in node. They publish the xlsx node module: https://www.npmjs.com/package/xlsx.
The documentation can be a bit confusing, however. If you have specific issues during your implementation, feel free to edit your question with code or ask a new question!
Concerning your specific scenario, the xlsx module comes with some nifty ways to convert spreadsheets to and from arrays of arrays as well as arrays of objects. You say you have "a large .xlsx file". If it is truly massive, you might consider something like a stream read from the spreadsheet populating a new array with duplicates as you go. Then, using the original spreadsheet, stream it again into a new document ommiting the entries from the duplicates array.
However the array-of-arrays helpers etc might be an easier route. I have done in-memory processing of CSVs with nearly 100,000 rows (~50MB). It's a bit slow, but definitely possible.
Hope that helps
https://docs.sheetjs.com

Duplicates removal from different excel files at a time

I have 5 folders and each folder consists of around 20 excel sheets.
And these excel sheets contain duplicates within it. It is becoming very hectic to open every file and remove duplicates.
Is there anyother way to remove duplicates from all these files at once ?
All the files contain different set of duplicates and no common columns will be present.
XD I'm really understanding your situation but I think that the solution will be one of two :) :
1-make a program with any programming language you can use and try to load the files one by one to do what you want
2-(the easiest one)Try to find a good converter to convert all your files to SQL tables then come here to this site and ask how to delete duplicated rows from different SQL tables after doing that reconvert the SQL tables to EXCEL files again and it will be done (y) ;)

For analysis of test data

Have about 2000 files of text information each file having 20000+ lines and 8 columns. Each files has to be read for a calculation and closes and the result of the calculation has to be stored in Excel.
Your question is so vague, I do not understand what sort of answer you expected.
For example:
are all 2000 files in the same folder,
do they have particular names,
do they have to be processed in a particular sequence,
how are the rows within the files divided into columns,
what calculations are required,
how are results to be stored?
Do not come back with answers to these questions. This site does not provide a free coding service. Instead split your requirement into little steps and look for help with each step.
Step 1 will be to find the 2000 files. The last related question (see on the right) is How can I extract data from multiple files in a folder of excel which shows how to find every file in a folder and open it as a workbook. That code is probably the outline structure for your macro. You will have to look up GetFolder to find the exact syntax but that is not too difficult.
Try to develop the macro you require. Come here with specific problems and code that does not function as you wish and you will find people who will help.

Resources