Please tell me how to make all the columns have become the middle of the table
should look like
Related
I have 2 columns (Columns A and C) that I want to create with 3 different parts of data (Parts 1, 2, and 3) in them. This leads me to believe they should be stacked columns. I also have two columns D and B, that take just one column of values from the chart. So I want to have 4 columns/bars/categories in total on the graph. How can I manipulate this graph to make it this way? I'm fairly new to Excel, but just for a note, I'm using Pivot Tables. I would also like to maintain the Quarters and Months that they are in.
Already checked this question, wasn't very helpful: In Excel, how do I make a stacked bar graph with 2 bar that have different data points?
This question suggests that I might not be able to do it, but I feel like I have seen it done before: How can I create a graph in excel that uses multiple columns and does stacked columns?
This question is really helpful, but I would like to also show the different colors in the bar. Not just make it one color for a sum: Combining Column Values in an Excel Pivot Table
Let me know if I should provide any further information or ways I need to improve this question. I'll be happy for any help. Thank you!
I think I've found a more or less simple solution, but it will require you to build a different pivot table. All your data will need to be grouped by Columns and Parts (for columns B and D it will always be Part 1, for columns A and C it will be parts 1-3). My randomly generated source data looks something like this:
Based on this source data build your pivot table with the following fields: Dates and Columns are the pivot rows, Parts are the columns, and Values are whatever you had in the values (Number in my case). Make sure to expand all selections on the pivot table for the chart to look right. the pivot will look something like this:
Finally, select any cell in the pivot table, go to Insert tab and select a stacked chart. It will produce the 4 bars you need per each month and quarter, but the disadvantage is you will have the same colors for the same part in all columns (e.g. your Part 1 will be blue in all columns A-D). You can manually override it for each individual bar if you like.
I consider myself to be proficient in excel, VBA, and pivot tables. I can not figure out how to move the column header in a pivot table E.G. "P.O." from the column header into the row header. It is driving me nuts!!!!
For example.
I need "P.O." to be placed to the left of the P.O. number while the pivot table is in compact form. The "P.O." portion is discoverable only when I hover the mouse over the number when in compact form.
I have work arounds to make this work. I can use a number of formulas and get what I want, but I was hoping I could simply change a Pivot table option and acquire my desired format.
I saw a question like this without an answer. If it isn't possible to change the pivot table options, I will make a formula to do what i want. Thank you all in advance.
I have a relatively simple excel issue, but I can't seem to get it working.
Here is my chunk of spreadsheet :
For some reason, when I sort by "Resource" column(ascending), it only will sort the resource column. But all the others columns( Dev ID#, INT481 Development, etc), stay exactly the same. I want to have all other columns shift positions also.
Does this have to do with any formulas, possibly? Because if I do a vanilla 2-column table in another spreadsheet, then it keeps both columns fixed together when I do the same sort. But here, it only sorts the Resource columns, but the others stay the same.
thanks!
Do you have a hidden column between the resource column and the rest of the table? If you do, and it has empty values, then Excel has trouble determining what to include in the sort unless you specifically select the whole table manually first.
From your screenshot you appear to have only applied the filter/sort to the resource column. You need to select the entire table before you tell Excel to sort (it will ask which column(s) you want to sort by if there's more than one, and you can even line up several conditions in the order of your preference, e.g. sort by Column E, A-Z, then by Column A, Z-A, and so on).
I have an Excel spreadsheet which contains four data tables on the same tab. The final 3 columns in each contain formulae.
I then have a vba code which performs an sql look up within an SQL Server table and returns a set number of columns to update each of the four tables.
For three of these tables, the data is pasted in and the table automatically expands and the formulae is copied to the end of the table.
However, for the first table, the data is pasted in but the table does not expand and hence, the formulae does not get added to the rows outside of the table.
I have searched high and low for a fix but no joy. I have searched the data extraction VBA code with no luck (the code is an exact match) and no joy in the table properties. I have also checked the Options menu for Auto Format As You Type settings but all seems fine.
Does anyone have any ideas for me?
Thanks,
David.
Hi All again,
Would love to know if anyone has an answer for this but, in the mean time I have fudged the code to automatically adjust the size of the table based on the row number for the last cell of data.
Thanks,
David.
I ran into the same issue and it was driving me nuts. Found out that in a few columns I had dragged formulas down pretty far (they were IF statements to return nothing if the first column was empty) so I didn't see them.
So remove any formulas that are 'under' the last row of the table. Should clear up the issue.
The most common cause is due to differing number of, or mis-aligned columns (vertically stacked tables) or differing number of, or mis-aligned rows (horizontally stacked tables).
For simplicity, let us use vertically stacked tables to illustrate what is happening. Consider an upper table with 2 columns and a lower table with 3. If we try to insert a row to the upper table, XL attempts to push all cells beneath the table down, but ONLY the cells directly beneath the table. So in this case cells below the 2 columns will be pushed down. XL quickly realizes that if it pushes just 2 columns down, the third column in the lower table won't be pushed down resulting in skewing the lower table. XL makes no attempt to figure out how to move the lower tables. It just refuses to even try.
The same holds true for adding columns to tables on the left for which there are tables directly to the right. If adding columns to a table would result in skewing rows of a table to the right, XL refuses to help.
To keep this from being a problem we can do a few things:
Keep the largest tables on top and to the left and align all table first columns and first rows.
If only rows are added to tables, don't stack them vertically
And if only columns are added to tables, don't stack them horizontally.
Herewith is an example of enforcing expansion of a table after data was copied over to the bottom of the table. This is done by resizing the table. Originally the table wasn't auto-resized as it has additional calculation columns.
The first line of the code finds the last row of data and the second line states the range to which the table needs to be resized. The third line resizes the table to the new range.
Replace sXXX and tXXX with your sheet name and table name.
Sub ResizeTableXXX()
myLastrowOfData = sXXX.Range("A1000000").End(xlUp).Row
myNewRangeSize = "$A$5:$P$" & myLastrowOfData
sXXX.ListObjects("tXXX").Resize Range(myNewRangeSize)
End Sub
HIH
I want to build a list report with complex footer and header, the issue is: if the column number of footer is bigger than the list body.it seems difficult to add more column to the footer. If I add list footer, the column number is just as same as the list body, I can merge,but can't split a cell. Please tell me how to achieve this. I know I can add a table to the tail of that list, and fix the width of list and table, but I don't think it is a good idea, because the table wound not repeat in every page. And sometimes needs to merge celles cross rows or columns.