Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to calculate total for a column with not all values filled

Hi,

I am trying to get a OWC pivot table running through a Web page. I am
facing an issue while calculating total for one of the Fields. Not all
the cell for this field will have values. I am using the following code
to calculate the total and adding that field to the view.

[code]
Data as XML:
<z:row Classification='Country' CurrentLevel='331' TargetLevel='361'
Acct='9999AXH' Size='0.15' Return='0.26'/

' add data axis
oView.DataAxis.InsertFieldSet oView.FieldSets("Size")

'add total size column
Set totalSize = oView.AddTotal("Size
Total",oView.FieldSets("Size").Fields(0), c.plFunctionSum)
oView.DataAxis.InsertTotal totalAvgSize
[code]

I am getting an error - <b"Function cannot be applied to the given
field" </b. Appreciate your help in this.

Cheers

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate values in an unlimited range of cells in a column WITHOUTalso calculating values that had previously been filtered AGAINST? yadang Excel Discussion (Misc queries) 2 October 1st 09 06:18 PM
How can I calculate total spend on items that have different values [email protected] Excel Worksheet Functions 1 July 29th 08 04:01 PM
How do I compare two values to calculate a total? lori_tig Excel Worksheet Functions 3 April 19th 06 12:29 AM
Hiding a total until all values are filled DCZ New Users to Excel 5 March 28th 06 12:15 AM
calculate which cells in column A will give me the total of column Ken Excel Worksheet Functions 4 January 6th 05 06:25 AM


All times are GMT +1. The time now is 04:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"