r/ExcelPowerQuery • u/Zestyclose_Log_9509 • Dec 01 '24
r/ExcelPowerQuery • u/Capable-Post-5674 • Nov 27 '24
How to Combine Files with Different Headers and Sheet Names Using Power Query
In this video, I'll guide you through the process of combining multiple files where the column names and sheet names are not unique, using Power Query in Excel.
r/ExcelPowerQuery • u/xeferil • Nov 25 '24
Import from file to existing table ignoring one column
Hello.
Please if someone can share some lights with this:
I have an existing table with a protected column (let's say column B). So, let's say I have columns A, B, C ,D, E
I want to import data from another CSV file. I have already transformed the data with power query and have columns matching A,C,D,E info.
How do I import the information, so they fill only columns A,C,D,E on the original table? I can't add a blank column on the importing file because column B in the original table is protected, so it won't accept any information even if it's blank.
thank you
r/ExcelPowerQuery • u/DM_Me_Anything_NSFW • Oct 28 '24
Append multiple tables but keep the loading order as the data expands
Hello I'm going crazy help me please
I have multiple sets of data that have the same rows. For control purposes, I must merge them all before loading them in multiple specific excel files while maintaining the order they load in.
For instance, once I load the string "AA3456" in cell A297 of an output excel file, I want this specific point of data to always load in line 297.
Splitting the data is easy : If one original set of data equals 1 or more final specific excel file, a simple unique index on each lines of the original excel table does the trick.
Fusing files AND maintaining the order they load in as I expand each data set is what I can't figure out. They always load in blocks of data and the resulting output is off from its original position as soon as I expand original data.
I figured I could match every line of the original sets of data with the time they were added and sort with that : "07:33:43" > "07:29:22". But that will cause a whole lot of other troubles.
There has to be a better way, please !
r/ExcelPowerQuery • u/ShroomHog • Oct 26 '24
Need help. Star schema question
I have a fact table of contracts which are unique. I have a dimension table that contains multiple rows of details for each contract, including customers that can be sold from that contract. I also have a dimension table of customers that can have duplicates because of region (I.e. region 1 has customer number 1 and region 2 has customer number 1).
Would I need to split the customer dimension table into 2 different dimensions in order to get unique values? Then have a region table connected to that?
I’d really like for the user to have fewer tables to choose from to bring in the right information. By creating all these dimensions tables, I feel like it’s going to make it confusing for the user to know the tables to choose from.
Does this make sense? This seems like it should be simple, but in struggling with the best approach to take.
r/ExcelPowerQuery • u/Strange_Discount6098 • Oct 25 '24
Replace Value/Fill Down roadblock
I am creating steps to manipulate a spreadsheet (see figure 1) I have manually cleared the contents in column B below Jane Doe and John Doe, not below Jack Beanstock. I don't want to have to manually clear the contents of those cells. I have used FILLED DOWN in PQ (see figure 2) which accomplishes what I want, except for below Jack Beanstock. I have tried REPLACE VALUE for those cells, does not work. I would appreciate some direction.
Thanks


r/ExcelPowerQuery • u/Dull_Hall7388 • Oct 24 '24
Power Query, add column but only with the information in cell C4
Hi, I need your help, how can I add a column, but only with the information in cell C4, Thanks! PD: In cell C4 is the invoice number of each file and I need it to be able to identify which invoice each line corresponds to.
r/ExcelPowerQuery • u/Opening-Educator30 • Oct 24 '24
Comment générer une série aléatoire de 000 à 119 sans doublons, sans avoir à supprimer des lignes ?
Bonjour,
je n'arrive à générer une série de 000 à 119 , cela me crée des doublons. Il y a 119 lignes identifiés (je ne compte pas les titres des colonnes). Comment faire ?
Merci beaucoup
r/ExcelPowerQuery • u/thecommexokid • Oct 22 '24
Expand column of lists and preserve list-order information
I have a json file I am trying to bring into Excel with Power Query. The data looks something like this:
{
“columns”: [“id”, “name”, “color”, “shape”],
“rows”: {
4: [4, “Po”, “red”, “circle”],
9: [9, “Dipsy”, “green”, null],
12: [12, null, null, “triangle”],
27: [27, “Lala”, null, “curlicue”]
}
}Notice that the list order is meaningful, and there are correspondingly nulls in the lists to keep them aligned.
(Don’t blame me, I didn’t design this schema!)
How can I import this data into a useful way? I tried converting the “rows” attribute into a table and expanding the second column containing the lists. But I only get two choices: “Expand to new rows” or “Extract values”, and neither preserves the position information.
r/ExcelPowerQuery • u/EezSleez • Oct 22 '24
Question, Power Query with Bluebeam Revu
So I use Bluebeam Revu for takeoffs as an estimator. Often times I'll export markups to a .csv file and copy into another sheet to manipulate and summarize the data. I was wondering if there was a way to run a query that looks to the markup list and acts as an in between to minimize the copy/paste steps.
r/ExcelPowerQuery • u/_ayushiaggarwal_ • Oct 22 '24
How to remove first row and make second row as header in EVERY appended file.
Hi! Learning Power Query. I want to consolidate data from multiple files. And remove first row from EACH file and use the second row of file as header only once. How do I do it?
What is happening now is that it is only making this change once, and the headers from other files is coming in the consolidated data.
Will be very grateful for the help, thank you!
r/ExcelPowerQuery • u/exiledsaint89 • Oct 21 '24
Date Difference with previous rows - conditional
Hi everyone,
I'm trying to create a custom column in an existing query that calculates the difference between the date in the current row and the date in the row immediately above; as long as the serial number in the current row is the same as the serial number in the row immediately above.
Before the new column is created, I have sorted the query by serial number, then by date. I then added a 0 Index column for reference as well.
Any help would be greatly appreciated, thank you in advance.
r/ExcelPowerQuery • u/et_tu_username • Oct 17 '24
From folder duplicating values Spoiler
I am creating a working report based on files saved to a folder. The idea is to only keep the most recent value if the value is found on any other files. When I added a new file to the folder today, the query duplicated the files and values. For instance, value A and B were found on 10/16 and 10/17 file. Now A and B are showing 2x for both dates, for a total of 4 instead of 2 (for each day). Any suggestions to stop this action?
r/ExcelPowerQuery • u/trueno_thorn • Oct 02 '24
Query for Google
Hi, I wonder what is the tool for Google that works like Query?
r/ExcelPowerQuery • u/OriginalGnomeHunter • Sep 17 '24
How do I reference a column with a number I the name.
I'm trying to write a conditional replace function, but the column I'm applying the function to has a number in it's name that I'm getting an error on. I start out the function with:
each [1-End]
I'm getting the error on the 1. What am I doing wrong?
r/ExcelPowerQuery • u/New-Power9790 • Sep 15 '24
CSV is already Structured
I am importing a report in power query, it is a CSV folder. It is already structured in a table format. When I am importing it, the columns are getting mixed up. I think because I said the delimitator is a comma and some of the columns have a comma in them. Is there a way to overcome this?
r/ExcelPowerQuery • u/Potential_Cheetah357 • Sep 06 '24
Need help to find and remplace
Hi guys, I'm new to PowerQuery and I'm completly lost. I see the potential of the tool but exept for the simple commands like duplicate, Split collumns, it's quite hard.
Right now, I'm trying to find a word inside one collunm and create a new collumn that say yes if the word is contained inside.
I tried multiple formulas but nothing's working...
If you can help me, that will save me some headaches... Thanks !
r/ExcelPowerQuery • u/r10m12 • Aug 01 '24
PQ - Add column with value based if text from other table is found

Here [picture] a very simplified example of my challenge.
table FIND is existing and I put the desired values in it, mostly only a few values.
table ITEMS is loaded from an external source and DOES'T have column 'remark'
I want the following action in PQ:
Add column 'remark' and fill it with: 'selected' if the values from table FIND[tofind] are found in column 'description' from table ITEMS [not case sensitive]. If NO match is found the value 'dismiss' should be set on 'remark' for that item.
Any advice/example hou to do this?
r/ExcelPowerQuery • u/brbehdbdt • Jul 31 '24
PQ - appending and concatenating data with differing dataframes
Excel, power query -appending columns and concatenating others
I have a large dataset with an issue i am trying to solve. The data goes back many years and as such is an immature data ser and the formatting is challenging...
What i have is multiple excel files per period with a couple of keying columns, where the rows all mean refer to the same thing, but the column headings can be different. In addition some files have unneeded columns that other files dont have.
Goal: append key information into 1 file, if possible where there are additional columns adding those in (non priority)
Problem 1: the column headings with the key columns can vary with same data meaning, my goal is to be able to ensure the key columns, all have the same heading
Problem 2: most of the files dont contain unique IDs corrrsponding to the name of the entity but not all ( if someone can help with ideas of how to generate these that would be great)
Thanks for any help guys
r/ExcelPowerQuery • u/weewish • Jul 29 '24
Website URL edit for Power Query
Hi guys! I need help to append a power query. However, the previous website that i used is not in service anymore. Below is the new website url.
srh.bankofchina.com/search/whpj/search_cn.jsp
I am unable to add the search date range and page number to the url as i need to append a loop of thousands of results.
Previously someone helped me but i failed doing his way. An example would be from this post earlier
https://www.reddit.com/r/excel/s/zZG8gNY28S
Any help would be greatly appreciated. Thank you!!
r/ExcelPowerQuery • u/ucallmecoltrane • Jul 26 '24
Copy cell contents from multiple workbooks
I’m very new to Power Query and am trying to copy and combine the data in multiple cells from multiple spreadsheets into a more organized new spreadsheet.
So what I need is for example the contents of cells A7, D9, E23 copied from worksheet1, worksheet2, and worksheet3 put into a new worksheet4 into cells A2:A4, B2:B4, and C2:C4. Can anyone please help me???
r/ExcelPowerQuery • u/ChadCTu • Jul 16 '24
M code editors
Anyone found a good code editor tool for writing/editing m code? Looking for something better than the Advanced Editor in PQ
Thanx
c.
r/ExcelPowerQuery • u/AndAbcdefu • Jul 12 '24
How can you get calculation of days when date is coming from same column?
I have 3 columns as the following:
Log1, Log2, AuditDate
How do you calculate date difference from Audit Date column when the other columns need to meet a condition such a as when Log1 = “green” AND Log2 = “red” then calculate the difference in days from AuditDate column?
r/ExcelPowerQuery • u/FearlessHumor3253 • Jun 14 '24
Multiple across queries
Hello, fairly new to PQ and hoping you can point me in the right direction. I have 2 queries, one with a list of individual with a ratio and second is a a list of expenses aggregated by expense type. I’m trying to consolidate the lists into one table to show a list of individuals along with their respective share of each expense type. I merged the 2 queries and I’m not sure how to dynamically multiply the total expense value by ratio. Also, the model will have to work for multiple group of individuals with different mix of expense types.
Thanks for any guidance.