Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have several pivot table reports - in some the datwa is shown as $
format, in others the data is shown in Count format. I want to create a new table which simply divides the $ data from one table by the count data from another. However, when I use the pivot table formula function to do this I can select the fields OK but I get an error result. The formula seems to have trouble dividing a $ format by a Count format. Does anyone know how to get around this? Thanks, Simon |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If the field you're counting is a text field, the result will be a
#DIV/0! error. You could calculate the result outside of the pivot table, instead of creating a calculated field in the pivot table. wrote: I have several pivot table reports - in some the datwa is shown as $ format, in others the data is shown in Count format. I want to create a new table which simply divides the $ data from one table by the count data from another. However, when I use the pivot table formula function to do this I can select the fields OK but I get an error result. The formula seems to have trouble dividing a $ format by a Count format. Does anyone know how to get around this? Thanks, Simon -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Debra
Thank you for your response. The field I'm counting is not a text field, it is numeric. That's why I don't understand why I'm unable to create a pivot table formula to divide one field by another. Surely I should be able to do this within the pivot table. Thanks, Simon |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can use a calculated field to divide the Sum of one field by the Sum
of another. Even if the field is summarized by Count in the data area, its Sum will be used in the calculated field, not the Count. So, if you're trying to divide sum of FieldA by Count of FieldB, you could do the calculation outside of the pivot table, referring to the values in the pivot table. Or, add a field to the source data that contains a 1 for each record. Then, use a calculated field to divide FieldA by the Sum of this new field. wrote: Debra Thank you for your response. The field I'm counting is not a text field, it is numeric. That's why I don't understand why I'm unable to create a pivot table formula to divide one field by another. Surely I should be able to do this within the pivot table. Thanks, Simon -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Debra
Thank so much for your suggestions - I like your idea of simply adding 1 for each record, so I'll give that a go. Thanks, Simon |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Debra
Entering a new col with 1 worked a treat. Thank you so much for your help. Simon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Pivot table formula | Excel Discussion (Misc queries) | |||
How do I add a formula to activate a pivot table list?? | Excel Discussion (Misc queries) | |||
PIVOT TABLE FORMULA | Excel Discussion (Misc queries) | |||
pivot table created from another pivot table | Excel Worksheet Functions | |||
Need Formula to display pivot table source data | Excel Worksheet Functions |