Dec 19 2022 05:50 AM
Dec 19 2022 05:50 AM
I'm working on excel table that has currency exchange data for multiple currencies and multiple filters to specify the the operations, I would like to keep the excel table as it is for daily use of data entries and create new excel table that automatically pull data with new arrangement.
The problem is in the main table all currencies shares same 3 columns for value but differentiate in rows data, I want to divide those 3 columns based on currency to 6 columns without affecting rows data (vertically values based on horizontally data).
As you can see in the main table I have name then currency then order (buy/sell) then type of order those steps distinguish the operations, then it comes to the main part I want to solve which are the 3 columns of values I want to automatically pull whether the operation is (buy/sell) with the data associated with (from the left and right) to new excel table.
I have been searching for a solution and most accurate one is using power query but I still don't have decent knowledge on how to use the M code or other tools it provide.
Hope I can get help from excel community.
Dec 19 2022 06:26 AMSolution
I would use Power Query as well. In the attached file you can enter data in the blue dynamic table. Then you can click in any cell of the green table and right-click with the mouse. Then select refresh.
The layout in the screenshot is for illustration. The green table can be draged to the right and then thousands of rows can be added to the blue table.
Dec 19 2022 06:37 AM
Dec 19 2022 06:46 AM
You are welcome. Yes the blue table is the main dynamic table and the green table is the result table. In the attached file the green table is on another sheet.
Dec 19 2022 06:54 AM
Dec 19 2022 07:32 AM
In the worksheet with the green table you can follow the steps shown in the screenshot to start the Power Query Editor.
In the Power Query Editor you can click on any of the applied steps and view the changes of the data.
Some of the applied steps have a gear icon on the right. An example is highlighted in the below screenshot. You can click on the gear icon to view the applied rule.
Dec 19 2022 09:00 AM
Dec 19 2022 10:04 AM
You can add columns to the blue dynamic table as well. The syntax of the green table won't be harmed. Only the order of the columns could be different in the green table. This can be corrected with simple changes in the Editor.
In the attached file i added columns date, name, place and notice on the right side of the table. Within the Power Query Editor i've arranged the columns accordingly. After each refresh the order of the columns in both tables is the same.
Dec 19 2022 10:56 AM