Average works, subtotal on same range gives #DIV/0! error

kcmuppet

Active Member
Joined
Nov 2, 2005
Messages
437
Office Version
  1. 365
Platform
  1. Windows
Hello

Does anybody have any idea why
Excel Formula:
=Subtotal(101, range)
would give #DIV/0! error, when
Excel Formula:
=Average(range)
works (i.e. returns a number) on exactly the same range?
 
I've tried with and without tables using all 3 formulas and a variety of cell formats, for me the results are consistent with all of them, either value or error depending on the content of the cell, but never a different result for one formula.

As I said in post 5, this is something that will be practically impossible to diagnose without the original data.
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I've tried with and without tables using all 3 formulas and a variety of cell formats, for me the results are consistent with all of them, either value or error depending on the content of the cell, but never a different result for one formula.

As I said in post 5, this is something that will be practically impossible to diagnose without the original data.

I've never seen it vary either. Unfortunately the data is confidential patient records so I can post here, but will update the thread if I ever find out what's going on. Meanwhile I'll switch to Aggregate instead of Subtotal
 
Upvote 0
The only thing I've seen close to it was when the data used circular references, even if you did have them the test with the extra column of subtotal formulas checking each row should have returned the same value as the cell in that row rather than an error because it would be out of the circle.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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