Suppose I have a pivot table:
Now if I add a column in it turns into this:
Clearly the formatting has messed up on the lighter blue cells at the top. I wish these to be the same dark blue as the original.
Even worse it does this when even just the values of the raw data behind the pivot changes, let alone adding columns etc.
Is there a fix for this to lock the formatting as I am having to update many such pivots and changing the colour each time I make a single change on the raw data or want to add a new column on every pivot is getting tedious.
I have looked online and looked into preserve cell width + formatting option bt messing with those has not helped.
Any ideas?
PS: Can anyone embed the images for me?
If you want to preserve the formatting, you need to add a new pivot table style. Within a pivot table, choose Design on the ribbon. You'll see swatches of the existing pivot table styles. Choose the down arrow and "New Pivot Table Style."
This dialog box will appear.
From here, you could specify the header, total row, and row styles you'd want. Once applied to a pivot table, new columns won't affect the style.
Related
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 intermediate excel skills and am relatively new to pivot charts and slicers. I have made a pivot chart out of production-related data. Next to the chart is a slicer that displays all the different products in production. Basically, whenever the user clicks on one of the products in the slicer, it displays a bar graph mixed with a line graph. If the bars are exceeding the line, then the product is considered "critical" (it is exceeding production capacity). I want to use conditional formatting (or another method, preferably not a macro) to highlight the products on the slicer in red that are critical.
Thanks in advance for your help.
You can't conditionally format Slicer Items. Instead, your best bet is to use a second PivotTable that only shows the critical products in it.
I have a single table where I want certain columns banded in a particular color. I tried conditional formatting, but it has an issue where I have to scroll the screen up and down for it to "catch up" and refresh so to speak.
if that is not possible, can I split into several tables with their own style and have them "linked" somehow (so that I can filter on a column and have it align the other tables accordingly)?
Edit: Ok not sure how that isn't clear. but here's an example
ListObjects.Add(xlSrcRange, Range("A1:D6"), , xlYes).Name = "MyTable"
ListObjects(1).ListColumns(1).TableStyle = "MyStyle" 'this isn't valid, but that idea
Edit2: I figured out how to get my alternative conditional formatting to work. Before, I was having to scroll down and then back up for it to refresh. Turning off banded rows(via table design menu or code) fixes that problem. Code used to turn off:
ActiveSheet.ListObjects("MyTable").ShowTableStyleRowStripes = False
I have a pivot chart of a pivot table with two row fields and one column field. I would like to hide one of the row field buttons on the chart but leave the other visible to use as a filter. I see, when I right click on the button, the option to hide all axis buttons, but that removes both of them. Is there a way to only hide one? I am creating the table and chart in VBA, so if it can only be done with code that is fine.
So in my efforts with this, I have at least been able to disable the button using the following code: ActiveSheet.PivotTables(1).RowFields(2).EnableItemSelection = False. The button is still visible though. Currently I am hiding it by pasting a white shape over it, but I consider this a clunky option.
How can I set up a column in Excel so that every other line has a different background color, even when I insert a new row?
Apply Conditional Formatting, with two rules, each with a different background colour
=ISEVEN(ROW())
and
=ISODD(ROW())
Creating a table is one way to do that.
Select the cells that should have the alternating color formatting, click "Insert" and "Table" on the ribbon. Tell Excel whether your data has a header row, and click ok.
If you would prefer to clear the arrow that appears on the first row (for setting filter options), click anywhere in the table, then click "Data" and deselect "Filter" on the ribbon.
If you add a value in the row just beneath the table, the table and background color formatting will expand to include the additional row.