Too few arguments

generaleddie

New Member
Joined
Feb 12, 2019
Messages
2
Hi,
I'm getting the error too few arguments for this function with the below formula, any tips on where I am going wrong? I have simplified my table below but, basically, have multiple trusts donating to different charities and want to know the distinct count of beneficiaries for each charity, named in the table as One, Two and Three. In table below, for example, the results would be: One - 4, Two - 2, Three - 1.

=SUMPRODUCT(('Data £'!F:F="Three")/(COUNTIFS('Data £'!C:C, 'Data £'!C:C, 'Data £'!F:F="Three")+('Data £'!F:F<>"Three")))

[TABLE="width: 50"]
<tbody>[TR]
[TD]C[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Organisation[/TD]
[TD]Charities[/TD]
[/TR]
[TR]
[TD]Action Duchenne Limited[/TD]
[TD]One[/TD]
[/TR]
[TR]
[TD]Army Family Federation[/TD]
[TD]Three[/TD]
[/TR]
[TR]
[TD]Build Change [/TD]
[TD]One[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Bursary Students[/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Cambridge Heath Sixth Forms [/TD]
[TD]Two[/TD]
[/TR]
[TR]
[TD]Chailey Heritage Foundation[/TD]
[TD]One[/TD]
[/TR]
[TR]
[TD]Children with Cancer UK[/TD]
[TD]One[/TD]
[/TR]
</tbody>[/TABLE]

TIA!
 
Alternatively, you can create a table with only 2nd column blank... Use Countif function and appropriate criteria like "One", "Two" or "Three" to get the count.

Even that will appear to be the same as above.
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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