Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
#DIV/0! displayed in Pivot Tables
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Building pivot tables in Excel 2007 based on existing pivot tables? | Excel Discussion (Misc queries) | |||
How do I filter displayed columns when double click in a pivot tab | Excel Discussion (Misc queries) | |||
How do I get "multiple selections" displayed in Pivot Table Field | Setting up and Configuration of Excel | |||
Pivot table displayed by day of the week | Excel Discussion (Misc queries) | |||
How does the term 'pivot' apply to Excel's Pivot tables and Pivot. | Excel Discussion (Misc queries) |