IFERROR You have entered too many arguments for this function.

tandkb

Board Regular
Joined
Dec 29, 2010
Messages
51
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am using the following formula.

=IF($A5=D$4,1,(SUMPRODUCT(($A5&$B5=Transfers!$H$5:$H$5000&Transfers!$C$5:$C$5000)*(D$4=Transfers!$G$5:$G$5000)*(Transfers!$K$5:$K$5000)))/SUMPRODUCT(($A5=Transfers!$H$5:$H$5000)*(Transfers!$K$5:$K$5000)))

It is working great in some cells but I am getting a#DIV/0! error in others. I realize I have a division by 0 error but can't really help that. When I try to do the IFERROR function it wont let me and give me an error that says you have entered too many arguments for this function. Is there something I can do here?

Thanks so much for your help!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
What do you want to return instead of the error? Basically it's:

=IF($A5=D$4,1,IFERROR((SUMPRODUCT(($A5&$B5=Transfers!$H$5:$H$5000&Transfers!$C$5:$C$5000)*(D$4=Transfers!$G$5:$G$5000)*(Transfers!$K$5:$K$5000)))/SUMPRODUCT(($A5=Transfers!$H$5:$H$5000)*(Transfers!$K$5:$K$5000)),""))

and you can change the red part to whatever you like.
 
Upvote 0
That worked perfect! Thanks so much for your help!!
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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