Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
#DIV?0! in Pivot Table
Sorry for the re-post, forgot to ask the question.
I create Pivot Tables that use calced fields. Sometimes the calced fields divide zero by zero which results in #DIV/0! showing up in the RowTotals and TotalTotals. I can use the Table Options For Error Value Show (blank), which removes the #Div/0! from the table display, the only problem with doing this is the TotalTotal cells also show up as blank. Here's my code for creating the calced field. ActiveSheet.PivotTables("PivotTable2").CalculatedF ields.Add "Weighted Avg Price", _ "=rev / PosSold" With ActiveSheet.PivotTables("PivotTable2").PivotFields ("Weighted Avg Price") ..Orientation = xlDataField ..NumberFormat = "$#,##0" End With How can I get the PivotTable to display the TotalTotals when this happens? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to create pivot table from existing pivot table in excel 2007 | Excel Discussion (Misc queries) | |||
Print Pivot Table headers on pages with Pivot Table | Excel Worksheet Functions | |||
Copying values from pivot table to cells outside pivot table | Excel Discussion (Misc queries) | |||
Filter lines with Pivot table and non Pivot table columns | Excel Discussion (Misc queries) | |||
Filter lines containing pivot table and non pivot table data | Excel Worksheet Functions |