# pivot table calculated field reference cell

Maybe I'm not understanding "field" correctly, the data is in a column that I have added to the pivot table as a xlDataField. This helps us illustrate the basic guidelines you follow when creating such a Field reference within a Calculated Field formula: You refer to a Field by using its Field Name. Take the below Pivot Table as an example, The filter field in the Pivot Table is called Category , and it includes two values “ Expenses ” and “ Sales ”. Is there a way to do this The grand total may change cells when the data is re This thread is locked. Formulas entered into cells M3, M4, M5, and M6 will calculate the expense-to-income ratio for each year and grand total. When I put I insert a calculated field with the following formula, it … Q42011, Q42010, the same options are available for Crt2, Crt3 and Crt4. Lets say it is cell C4. rather than seeing "=c4" in the target cell, a function called "getpivotdata" appears. In the case above, this is “Sales Amount”. Dummies helps everyone be more knowledgeable and confident in applying what they know. Next, we'll create a calculated field, and check if the date field is greater than 2. Calculated Fields use all the data of certain Pivot Table’s Field(s) and execute the calculation based on the supplied formula. It is possible to make the GETPIVOTDATA use dynamic references (i.e. In the above example, you should double click cell C1 to edit the field name. I want to reference the Grand total of a column in a calculated field. I am using Excel 2007 and creating a pivot table. Count of Work orders, and Sum of the Cost. I want to reference a cell in a pivot table. ... You can't unless there is another column in that table that has a unique value that allows Excel to find the correct row, but we cannot help without seeing the data and its format. Dummies has always stood for taking on complex concepts and making them easy to understand. I have two columns in a pivot table. Here is how I set up the criteria, "Crt1" is the cell with the drop down box, there are 20 quarter periods that they can select from, e.g. I want to insert a calculated field that simply divides the sum of cost by count of work orders to get an average per work order. Calculated fields in Excel Pivot Tables. This table expands and shrinks. Item #1 (‘Sales Amount') is a reference to a Field within the Pivot Table (Sales Amount). GETPIVOTDATA is a brilliant formula that allows you to effectively run a VLOOKUP within a Pivot Table. I am trying to reference a cell value in a pivot table as part of a formula outside the table. The Pivot Table you will link its filter function to a cell value should include a filter field (the name of the filter field takes an important role in the following VBA code). I don't want that, I just want to see the cell name. Select a cell in the pivot table, and on the Excel Ribbon, under the PivotTable Tools tab, click the Analyze tab ; In the Calculations group, click Fields, Items, & Sets, and then click Calculated Field. We shall use this pivot table to explain cell references within this pivot table. you can make it look up information within a Pivot Table by referring to a cell which you can change), but the one that doesn’t work so well is the Data Field (the one that says something like Sum of Last Year). We entered a formula in column M, and this column is not part of our pivot table. Now I have the total number of units of the material Gravel and Sand and its price per unit . Calculated Fields can add/ subtract/multiply/divide the values of already present data fields. To rename a Pivot Table Calculated Field, just double click on the field name and edit. You can follow the question or vote as helpful, but you cannot reply to this thread.