Forum Discussion
Have data in multiple rows needs to be combined and extra rows deleted
Modnar1 Perhaps Power Query can help. The attached file contains a query that calculates total CoGS by order number. If that's not what you had in mind, please clarify how the end result should look like.
- Riny_van_EekelenMar 25, 2022Platinum Contributor
Modnar1 That's exactly where Power Query comes is. You connect to a data source and perform all sorts of transformations. Each of these these are "recorded" in their own step and will be executed every time you press Refresh. In the example I uploaded earlier, I connected to the data that I named "myData". That's what you can see in the very first applied step.
Source = Excel.CurrentWorkbook(){[Name="myData"]}[Content],But you can connect to a table, a CSV file, a web-page and many more sources.
You may remove everything in A1:I17 in Sheet1 and paste new data somewhere else. But the structure must be the same as the original (i.e. the column names must be the same), but you can paste thousands of rows. As long as you name the entire data set "myData", you can Refresh the query I created. Lear more about PQ in the link below.