Extracting data from excel using powerquery - excel

I want to extract certain set of rows (let's say rows 10-30) from the same sheet (let's say sheet "income statement") present in multiple excel files to create a data dump (let's say "result") in an automated manner. Also, I want to shape the data in a particular way (basically pivoting and transposing on certain columns). I want to use powerquery (and probably M, if required) for this. Can someone help me with how to go about it, please?

Related

Comparing data between two sheets in Powershell - how to find data after cells with specific values?

To start, unfortunately I cannot use Import-Excel (yet! organization is looking to implement the module "soon") or other outside modules, so am just working with excel objects manually.
I made an automated report that appends to an excel document every day. It looks something like the included picture. The servers and their data are not in the same cell position for each daily sheet, but are always grouped together (so Server1 and its data might be in the middle of today's sheet, but at the beginning yesterdays sheet). Databases can change, so I'll also be looking into error checking that a database actually exists on both sheets to compare them.
I want to check the most recent sheet (sheet labeled 2020-08-10) and compare each database with the same databases on the oldest sheet (sheet labeled 2020-08-08) to get a size % difference between each database, but I can't seem to figure out how to automate finding the multiple "Database" rows of each server, then going down and grabbing each database and size to compare.
Any help or guidance to get me researching in the right direction is appreciated.

Transferring data from one excel sheet to another

I will preface this by saying I have not much experience with excel.
I'm looking to see if there is a way to input data into one sheet and simultaneously transfer the data to different cells in another. The sheets are not formatted the same. The sheets are used for tracking shipment data. Sheet 1 is for a shipping manifest of contents and the second is used as a master tracker to tell what items were shipped when, quantities, truck #, location # etc.
Is this possible given they're of different formatting?

Group By Sum & Sort several workbooks contained within a file

My Goal: I have a file (F) that contains several workbooks, each workbook has the same format and are around 40k rows.
the form of each workbooks is as follows:
I want to get this final output within a master worbook which contains one sheet per looped workbook (contained in F).
I know that a pivot table does very well the job. But I want it automatic and I have many files within F ...
What would be your strategy, would you still use pivot table and do a sort of loop for each files? Would you use SQL, other idea ...?
Many thanks for your feedback and approach on that.
I would at least give it a try. This went really fast to create and gives you an idea of the ability of power pivot. You can see how I arrange the Rows and Columns to the right in the PivotTable Fields.
So Power Pivot!

Generating summaries automatically

Part of my job is to pull a report weekly that lists patching information for around 75000 PCs. I have to filter some erroneous data, based on certain criteria, and then summarize this data myself and update it in a separate spreadsheet. I am comfortable with pivot tables / formulas, but it ends up taking a good couple of hours.
Is there a way to import data from a CSV file into a template that already has in place my formulas/settings, etc. if the data has the same columns, but a different amount of rows each time?
If you're confortable with programming, then, you can use macros, on this case, you will connect to your CSV file, then extract the information and put it in the corresponding places on your spreadsheet, on this question you can find most of what you need to start off: macro to Import csv file into an excel non active worksheet.

conditional copying in excel

hi
i need some help with vba.
i know that when you want to copy excel cells based on a condition, you do so by right clicking the sheet and entering the visual basic screen.
thing is, i'm not very familiarized with vb. i've read some similar posts but haven't been able to understand them completely.
this is what i want to do:
i'm making a workbook for chemistry students to illustrate surface tension. what i did was give them 5 different substances to choose from.
i already have data from reliable sources, so calculations are not a problem.
thing is, i want to display the results on graphs. i only want them to choose 2 different substances at a time, so i only want to display 2 graphs.
i don't know how to copy the data from the substances they chose.
thanks!
I can help you; you need to be more specific. If I understand your question, you have a graph that plots data from one sheet (sheet A), another sheet that contains all the data (sheet B), and you want sheet A to contain some of the data from sheet B, based on a condition specified in sheet A (ie, type of substance) and reload the data in sheet A with some data from sheet B based on an event that triggers the moving of the data. Is this about right? If so, I need to know the following.
1) where is the data stored in sheet A to generate the graph
2) is the data the same lenght (ie. all 5 substance data contain 50 rows, for example)
3) what's the trigger to change graph and start the procedure to move data around
4) how is the data stored in sheet B
5) what is the condition
6) what's the trigger
It'd be nice if you could post your spreadsheet online somewhere.

Resources