I have an excel document that have this structure:
[Customer name] [Customer street] [Customer post code]
It has a couple of thousands rows, and I need to separate the into their own files.
I have tried to find someone else that has made the same thing or similar, but without success.
I want to create a script that asks me "Which post code interval do you wanna export?" and answer to that might be "100-300". Then the script exports those rows into a new txt/csv-file that is tab or comma delimited.
Is this even possible in Excel? I am developer but not an Excel developer :D haha.
Would be so grateful to receive some examples on how to do this.
You can use filter option in you excel file it has several option for example you can set a filter on Post code must be bigger then 100 and less then 300
->
Related
I'd like to automate the creation of monthly reports. I have a database through which I can export an Excel file (or csv, for the record). The table format is such that the number of columns (~500) will always be the exact same, but the number of rows (25-100) is variable.
The end goal is an excel tab with a few graphs/charts based on said data. For the charts, I'll only need to use maybe 10 columns of data out of the 500, but all of the rows.
I would like to automate the creation of this report as much as possible. Ideally, it will be able to be used by people with limited Excel knowledge. I would think I could set it up such that they can export the file out of the database, input it into my created sheet, and receive an output of charts.
This seems simple but I can't find much info on something like this. I just want to tell Excel "for every inputted file, make a pie chart out of these columns, a line graph out of these columns, a bar graph out of these...etc etc"
Power Query is where I started, and it helped to clean up the large number of unneeded columns, but I don't see where the functionality to automatically create charts comes into play. Macros/VBA seemed like an obvious next step, but I'm worried about how to set it up such that other users won't have to mess with the macros to get a desired end result. Again, ideally it would be as simple as inputted a file path, clicking a button, and getting graphs outputted.
Any tips or advice on how to approach this or what Excel tools that would be easiest to use would be great. Thank you in advance!
I am required to download and print loads of documents, which are then required by other departments. E.g. Invoice in pdf format.
Thereafter, I use excel to note my 'printing records' such as below:
Sometimes, I recorded them erroneously which have heavy implications! E.g. I recorded '1' even though I have not printed the document.
I wish to know if there is any way to automate this process?
P.S I only have basic VBA knowledge so I apologize in advance for asking such a mediocre question!
I couldn't seem to find a solution on the net too.
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
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.
I have a series of PDF files uploaded to Google Drive (and also stored on my computer here) in different rows of a Google or Excel spreadsheet. Each row has a distinct PDF file linked to it. What I want to figure out is a way to extract a 5 row of data (not a table) from the PDF and add it to certain columns on the sheet:
Here's a sample pdf:
https://www.dropbox.com/s/2j7pqeja38jxmzc/Sample.pdf?dl=0
The sheet looks like this:
https://www.dropbox.com/s/40u1n7umacd74kw/Sample%20sheet.xlsx?dl=0
So the process will be like Excel open linked file in Row 1, extracts data needed, then adds the data to certain columns in Excel/Google spreadsheet.
I was just wondering if this is possible.. The PDF has lots of pages, but I only need data from a single page in it.
If this doesn't work in Excel/Google spreadsheet, any suggestion how I can automate this process?
PS: I'm not asking for the exact way to do it, because I know that's a violation here, just wanted to know if this is something possible and can be done in Excel or Google spreadsheet. If not, any suggestion will greatly help. Thanks!
Yes, it's possible, but it depends a lot on the PDF, which I imagine would be the biggest hurdle. You'll probably find this answer is at least relevant, if not exactly what you're looking for.
Otherwise, if everything is stored in Drive, it's just a question of:
1) Looping through the sheet and opening the doc you want.
2) Getting the content of the PDF (Probably as a string).
3) Finding a consistent way to cut the relevant data from the PDF (This depends a lot on the content of the PDFs).
4) Pasting the data to the sheet.
Number 3 might be your biggest challenge, but once you get started you might find it to be a lot easier then you'd think.