A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Pivot Table Calculated Field - Sum/count



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2009, 12:32 PM posted to microsoft.public.excel.misc
Jeff Metcalf
external usenet poster
 
Posts: 9
Default Pivot Table Calculated Field - Sum/count

I have a pivot table that returns data from a SQL View.
The pivot table counts the total number of incedents, and sums a SLA met
field.
The SQL table returns a 1 if the SLA was met, or a 0 of it was not.

Why, when I try to get the percentage (sum of SLA / count of incedents)
using a calculated field does every row return a div/0 error?

Thanks in advance
  #2  
Old November 10th, 2009, 03:31 PM posted to microsoft.public.excel.misc
AFSSkier
external usenet poster
 
Posts: 162
Default Pivot Table Calculated Field - Sum/count

0/0 will give you the #DIV/0 error. Try =IFERROR(0,SLA/count)
--
Kevin


"Jeff Metcalf" wrote:

I have a pivot table that returns data from a SQL View.
The pivot table counts the total number of incedents, and sums a SLA met
field.
The SQL table returns a 1 if the SLA was met, or a 0 of it was not.

Why, when I try to get the percentage (sum of SLA / count of incedents)
using a calculated field does every row return a div/0 error?

Thanks in advance

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:59 PM.


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