Pivot Table Averages incorrect due to 0 values in raw data

dianne_g

New Member
Joined
Jan 3, 2024
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Good Morning All

I have raw data that contains 0's in the price per gallon field (first image. 0 record is first)
Second image shows pivot table with a 3.017 average (this includes the 0 value record)
Third image shows what the average is not including the 0 value . formula used is: =average(AM2:AM8) and its a higher amount than the pivot table that uses the 0 value record. I just did the formula on the sheet, but i cannot do that since i am using the pivot table and charts.

We are trying to use this for drivers avg mpg and performance.
But if it uses 0 value records - its not correct.

How do I make it not use the raw data 0 value records?

Thanks in advance for any help!!!
Dianne
 

Attachments

  • records - one has 0 value.jpg
    records - one has 0 value.jpg
    9.2 KB · Views: 31
  • Pivot showing average .jpg
    Pivot showing average .jpg
    4.6 KB · Views: 26
  • pic of what average comes out to without 0 value.jpg
    pic of what average comes out to without 0 value.jpg
    10.7 KB · Views: 25

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I found the answer!!!
Added a filter for #2 Diesel and just excluded the 0's !!! OMG too easy....
 
Upvote 0
Solution

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top