Calculated field returning #DIV/0 error but there aren't any 0's or nulls

agray310

New Member
Joined
May 23, 2018
Messages
4
I have a calculated field in a pivot table that is returning the #DIV/0 error. There are no 0's in the field and it's a numeric field so why would I be getting this erro?. I'm simply dividing delivery cost by the number of therms.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Re: Calcualted field returning #DIV/0 error but there aren't any 0's or nulls

Is number of therms a sum or count of a source data field? If it's a count, that won't work in a calculated field unless you have Power Pivot.
 
Upvote 0
Re: Calcualted field returning #DIV/0 error but there aren't any 0's or nulls

No, it's just a field with numeric data. Is there a way to post the file?
 
Upvote 0
Re: Calcualted field returning #DIV/0 error but there aren't any 0's or nulls

You can put it on a sharing site like Dropbox or Onedrive and post a link here?
 
Upvote 0
Re: Calcualted field returning #DIV/0 error but there aren't any 0's or nulls

The issue is that you have used entire columns for the source data. If you adjust the source range to only use the actual data rows, your field will work.
 
Upvote 0
Re: Calcualted field returning #DIV/0 error but there aren't any 0's or nulls

But then how will the pivot table recognize new data added to the dataset?
 
Upvote 0
Re: Calcualted field returning #DIV/0 error but there aren't any 0's or nulls

Either use a Table or a dynamic named range as the data source.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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