# Calculated Field Formula Help

I work a lot in Excel, but haven't done calculated field work before.  Essentially, I need to take a populated column in a pivot table, in this case it's a count of whatever by hour of day.  So rows is the hour of the day and the data is the count of customers by hour.  I need to add a column to take that total number of customers by hour and divide it by 91, because I ran the data for a 3 month period.  It absolutely has to be part of the pivot table because I'm trying to create a dynamic graph that can be pivoted and updated. I attached a simple copy paste and formula of how I did it without the calculated field.

What I'm struggling with most is what the formula is within the calculated field to say   take the field from the main column of the pivot table and divide it by 91.

Thanks,
Andy
Experts-Exchange-Example.xlsx
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Excel VBA DeveloperCommented:
You have the right idea of creating a calculated field in the PivotTable, just need to execute it.

1) Select a cell in the PivotTable.
2) Select Menu: PivotTable Tools (contextual tab) - Options - Fields, Items, & Sets - Calculated Field...
3) Enter a field name (ex., "Avg Daily Count"), then enter =Count/91 in the Formula box and then click the "Add" button:
The new field should automatically appear in the PivotTable; you just have to format the number to your liking (ex., 2 decimals)

I've created an example for your first five time slots.

Regards,
-Glenn
EE-Experts-Exchange-Example.xlsx
0

Experts Exchange Solution brought to you by