Updating multiple columns of a table
Otherwise the Help doesn't mention the multiple fields but give the general info.
UPDATE Statement Creates an update query that changes values in fields in a specified table based on specified criteria.
See Adrian thread on this is you're still confused.
But now, you want the Sum of function to replace the Count of function at once, how could you change the calculation of multiple pivot table fields at once in Excel?
Change the field settings in pivot table manually one by one Change multiple field settings in pivot table with VBA code In Excel, you can change the calculation of the field settings by changing the function one by one in the Value Field Settings dialog, please do as this: 1.
And then click OK to close this dialog, and you can see your Count function has been changed to Sum function, see screenshot: 4.
Repeat the above steps to change other fields’ calculation settings one by one. Hold down the ALT F11 keys, and it opens the Microsoft Visual Basic for Applications window. Click Insert Public Sub Set Data Fields To Sum() 'Update 20141127 Dim x PF As Pivot Field Dim Work Rng As Range Set Work Rng = Application.