Using conditional formatting on Excel slicers - excel

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.

Related

Pivot Charts - how to choose columns to show on the graph

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.

Excel pivot table formatting keeps changing

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.

Excel Slicer based on scrollbar

I have a slicer containing values from 0.00-1.00, connected to a pivottable.
I would like to have a scrollbar to control these slicer values instead of having to select them individually.
I have looked into the timeline option, but that obviously only applies to dates, which I can't use.
The second option I have been trying is the ActiveX controll scrollbar. I thought I'd then use the scroll bar as a maxium value for the slicer, but I don't know if it's possible to connect the slicer to a cell?
I ended up adding the slicer content as an extra row in the Pivottable and then recording a macro where I filter the content to some arbitrary values.
I then adjusted the macro to reference the cell values linked to the scroll bar.

Excel: Charts for Filtered Ranges are Showing Up Blank

I have a document that I have built tables of data into that are formula driven. I created charts for these tables and for reporting purposes applied filters to these tables to make the charts more readable. The way this works is the user selects an option from an ActiveX combo box which triggers the filter on the table thus making the chart only display the filtered values. All of this works very well except when I add more data in the form of new row or columns to my table. The result is when you select an option from the combo box the chart just appears blank. This only happens sometimes and I have yet to figure out why. The attached picture is showing what the charts data looks like when I chose select data after this problem occurs. As you can see there is data that should be displayed in the dialogue box but it appears empty, likewise the chart is empty. If I copy and paste the chart the data then appears in the new chart, until I select a different option from the combo box, then it disappears again. Very confusing and frustrating. Any ideas as to why this is occurring?
I figured it out! I needed to recalculate the sheet.
Worksheets("Sheet1").Calculate
This seems to work fine.

How to group the rows in excel using macros

This is what i need
i want to group the rows of above screen shot to below screen shot
Tried a lot using macro but not getting proper any one please help me out
Thanks in advance.
The simplest way to do this is with a pivot table. With a cell in your table selected, choose Pivot Table from the Insert tab. of the ribbon. Use the settings I show in this image. You can customize the pivot table to remove the Grand Total line.

Resources