Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Exlude Zero Values from Average

I have a pivot table which contains target values. I want to get an average
of the targets excluding the zeros. I've included simplified data below.


Fleet Subfleet location Target
PG PG1 42090 3
PG NC700 42090 3
PG SLAB 42090 0

average should calculate to 3 not to 2....
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Exlude Zero Values from Average

In the dropdown filter for the 'Target' column, just untick the '0' and the
table will recalculate without the zero's (but it will also not display them)

If you need the '0' items to display then unfortunately I do not know the
answer. Someone else maybe able to help here.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Exlude Zero Values from Average

I'd use a helper column with a formula like:

=if(d2=0,"",d2)

Then pivot on that.

Robin G wrote:

I have a pivot table which contains target values. I want to get an average
of the targets excluding the zeros. I've included simplified data below.

Fleet Subfleet location Target
PG PG1 42090 3
PG NC700 42090 3
PG SLAB 42090 0

average should calculate to 3 not to 2....


--

Dave Peterson
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
How to exlude holidays from a range of dates Excel Dubai[_2_] Excel Discussion (Misc queries) 2 June 27th 07 12:44 PM
average values in non-contiguous cells, ignoring 0 values RWormdahl Excel Worksheet Functions 3 October 30th 06 01:06 AM
Take an average of a range of cells but exlude blanks from that av B G Excel Discussion (Misc queries) 4 October 12th 06 02:46 PM
How do I exlude hidden cells when copying data Bully Ram Excel Discussion (Misc queries) 1 August 1st 05 03:54 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM


All times are GMT +1. The time now is 09:40 AM.

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"