Div/0 error summarizing tables

Taiter

New Member
Joined
Jun 27, 2012
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Greetings, First let me thank you in advance with any help and/or suggestions. I have 5 tables that I am summarizing on a new tab. I am using the following formula to get my totals for one column that has repeating values, and want just the total the unique data points, of
SUMPRODUCT(1/COUNTIF(TableA[Data1],TableA[Data1])).

If a table has not had data added yet I get a DIV/0! Error.
I tried changing it to
IF(TableA[Data1],SUMPRODUCT(1/COUNTIF(TableA[Data1],TableA[Data1]),0)) get a return of FALSE.

Is there a better (easier) formula that I could use to just show Zero for those tables that have not had data added to the list (yet)? Again, Thank you for any assistance.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

One option
Excel Formula:
=IFERROR(SUMPRODUCT(1/COUNTIF(TableA[Data1],TableA[Data1])),0)
 
Upvote 0
Solution
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

One option
Excel Formula:
=IFERROR(SUMPRODUCT(1/COUNTIF(TableA[Data1],TableA[Data1])),0)
Thank You, that looks like it will work for me. I did update my account as you suggested
 
Upvote 0
I did update my account as you suggested
Thanks for that.
With 365 another option is
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(TableA[Data1],TableA[Data1]<>""))),0)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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