I have a table in sheet a, that I want to merge with sheet b, and output on sheet c. Most of the column titles are the same but there are a few that are unique to a and to b. I want my output table to have every possible column title so that it can exist as a single table.
Please let me know if you know how to do this, or anything that can put me in the right direction. Very interested in not using Macros and using formulas.
Thanks
To merge two tables with formulas you can use either "Vlookup" or a combination of the "index" and "Match" functions. However, I prefer the method I did below Using power pivot.
If you want to use vlookup here is a good resource:
https://exceljet.net/excel-functions/excel-vlookup-function
Using Power Pivot:
You can merge 2 tables in excel using power pivot. It requires a bit of setup but it is not hard to do.
If you do not have power pivot you can get the add in by doing the following:
1.) Clicking on File on the top left > select "Options" on the bottom left
2.) From the pop up select the "Add-ins" section
3.) From the drop down on the bottom select "COM Add-ins" > click go
4.) Select the check box next to "Microsoft power pivot for excel"
5.) A new "Power Pivot" tab will appear on the ribbon
With That out of the way you first need to convert your tables into "Official excel tables" so you can merge them. To do this click anywhere onto the table and press CTRL+T. You have to do this for each table.
Next you need to click anywhere on one of your new tables and go to the data tab and select "From Table/Range"
Since there are two tables we just want to add the first table to our power pivot queries for now. In the next screen on the top left click on "Close and load to" >> then select "Only create connection".
We need to add the other table to power pivot as well but the second step is a bit different because we are going to merge the two tables.
1.) Like before click anywhere on the 2nd table and click on From Table/Range.
2.) This time when the power query editor comes up we want to select the merge "queries button" on the top
3.) From the merge window select the table that you want to join with and the click on the ID to join on from both tables. You may also want to update the join kind from the drop down list then click ok.
4.) After merging Your table will have a new column with a value of table, click on the little arrow icon next to the column header to expand it and select the fields that you want to display from table 2 and click OK. All the columns you selected will be added to the table. At this point you can rename the column names so they do not display something like Table2.Name
5.) Click close and load to from the top left, keep the first option "Table" , and click ok. You should have your new table in a new worksheet now.
Related
Im working with a table similar to this one:
I want to create a pivot table that organizes the data by the "GRUPO" column, indicating the reason for leaving a company.
For example, in the table above, DK would have to have SALARIO = 2 (there are 2 people in group DK who between RAZÓN 1 and RAZÓN 2 have checked SALARIO).
I manage to do something like this:
But is not working correctly, as you see, i only want the final result for each RAZÓN...
Any help? Thanks!
Well, there might be other ways to accomplish this task, however this is what i usually do, since i found it easy one for me, so you can follow the steps and refer image as well,
1.) Select any cell within the table i.e. your ORIGINAL DATA SOURCE,
2.) Now from Data Tab --> Goto --> Get & Transform Data Group --> From there click --> From Table/Range,
3.) On selecting the one i have mentioned above, shall open the Power Query Editor,
4.) From Query Settings Panel, under PROPERTIES change the name to Grupotbl
5.) Now select any column and press CTRL A to select the whole table to change the data type, from TRANSFORM TAB --> Under Any Column Group --> Click Detect Data Type , this shall add one step in the APPLIED STEPS as Changed Type,
6.) Next select the first three columns and right click & select --> Unpivot Other Columns, eventually adding one steps under APPLIED STEPS as Unpivoted Other Columns
7.) Now rename the column Value as Razon
8.) Press CTRL and select the columns other than column named Attribute , right click Remove Other Columns,
9.) From HOME TAB under Close click the dropdown and click Close & Load To,
10.) On doing above, you shall get this and click Only Create Connection and check the Add this data to the Data Model --> Press Ok,
11.) From Insert Tab --> Pivot Table --> From Data Model --> You can either choose New Worksheet or Existing Worksheet, which ever suits you best, for this example i have selected existing worksheet cell A9
However you can also right click on the QUERIES & CONNECTIONS and click load to Pivot Table Report and Press Ok.
12.) So you see the Pivot Table layout has been created and you can also find the Pivot Table Fields Panel on the right side of your worksheet, From Fields panel you will find all the tables has been listed, select the Grupo Table --> Drag the Grupo Field in the Rows Areas while the Razon will be in the Values area respectively, you can change the layout design from design table, as well as from Report Layout change it to Show in Tabular Form.
13.) In this manner you can Transform your data to Summarize a Pivot Table!
so far when I want to choose columns which I want to show in the graph, I have to click on the pivot table and then choose columns fom pivot fields. Is there a faster way to do that? I would like to add some nice looking list under the graph from which I could choose columns to show.
You don't need to use the PivotTable, you can add columns directly to the PivotChart using the same interface as for PivotTables. Right click on the PivotChart and select "Show Field List" as the bottom. The control pane will appear on the right.
Building a custom user interface below the PivotChart would require a significant amount of VBA and would not perform as well.
Hello I'm trying to figure out how I can do something like this with that table
Can you help me? because when I use candidate A as a row I can't compare them in a single graph
You need to start with propoer structured data you can report on. This menas you need a table with column "Candidate" and a column "Opinion". If your source is not like this we can unpivot the data.
Go to m-guery by clicking on "Transform data". In m-query, select both columns, click the "Transform" tab and click "Unpivot Columns". Result should be as below.
Close m-query "Apply & Close". In power by click on the matrix visual, add the columns to the fields as shown below. Pay attention to teh Values because you need to set it to count in the drop down.
Enjoy!
I need to create an Excel template with f.e following columns and data:
Example of an Excel Table
and so on. So my goal is to set up the filter in such a way, that when I choose A1 from A column, I can get all the related B,C and D values, like B1,C1,D1; B1.1,C1.1,D1.1;B1.2,C1.2,D1.2
With the normal filter I can only see B1,C1,D1 when I choose A1.
The only solution I came up with, is writing A1 in every row that has relevant B 1.x ,C 1.x and D 1,x. Then I can see all relevant stuff, but this solution is not the most effective one(especially when values inserted will be a small text, writing same sentences in each row makes it look a bit messy)
The Pivot Table also does not recognize B1.1 C1.1,D1.1; B1.2 C1.2,D1.2 as related to A1. Even when I copied A1 in every row, it still couldn't sort it correctly.
Can you please help me with these quesitons? Many thanks in advance!
Kamola.
Update: I created a following example for clarification, hope it will help a bit! Unfortunately I cannot share the Excel Sheet per Stack Overflow, so here is a screenshot of it:Example of the content
MANUAL APPROACH
In your example which is a Table but not a pivot table,
Highlight Column Problems in your table;
Press Ctrl+G on your keyboard to bring out the Go To window;
Click Special... button at the left corner of the window;
Select Blanks then click OK;
Do not alter anything, go to the formula bar and enter =A2, then hold Ctrl key and press Enter.
If you have done the above steps correctly, you should have column A filled with Problem IDs.
POWER QUERY APPROACH
FYI, if you are using Excel 2010 Professional Plus or later versions of Excel, you can add your data table to Power Query Editor, right click the column header of the first column and select Fill -> Down to quickly fill the column with all Problem ID.
PIVOT TABLE APPROACH
If you want to show row labels in each line in a pivot table (as mentioned in your post), click somewhere within the pivot table, go to Design tab in the Excel ribbon, click Report Layout and select Repeat All Item Labels.
Let me know if you have any questions. Cheers :)
I have this information from which I am generating a graph, but I would like to add a subclassification.
I currently have the table and graph as follows:
I would like to know if there is any way to add a sub-classification so that
something like this is left, taking the data from column A:
Thanks for your support....
Yes, you can use "Pivot Table" & "Pivot Chart".
Go to "Insert" tab and click "Pivot Table". Select your data range and the position for your table. Arrange fields as appears on screenshot attached. After that, on the same "Insert" tab click "Pivot Chart" and configure it's style to match your requirements.
This can be done without a pivot table. Remove the duplicates in column A, then edit the chart source, click the Edit button for the Horizontal Axis Labels and select A2:B7.
Or, if you want to use a pivot chart, then pull both estado and nombre into the row area of the pivot panel.