IFERROR Too few arguments

mactoolsix

Board Regular
Joined
Nov 30, 2010
Messages
105
Excel 2010
My formula:
=(AF$8*AF$7)-SUM(AK$5:AK10)-AL10 creates a #VALUE ! error due to AL10 being a blank cell. If I change AL10 to a value it will fill the column with "0.00", and then the next column with zeros also, which I'm trying to avoid simply to present a cleaner spreadsheet.

I was going to reformat the column as CUSTOM 0;;;@ which then hides zeros, but that also deletes the 2 decimal places in that column.

I tried this formula:
=IFERROR((AF$8*AF$7)-SUM(AK$5:AK10)-AL10),"") to blank out the error, however it has too few arguments.
Is there a simple way to add an argument to this, which would make the IFERROR function work?

Thanks, Mike
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

You just had an extra bracket:

=IFERROR((AF$8*AF$7)-SUM(AK$5:AK10)-AL10,"")

Edit: you also don't need the first bracket set:

=IFERROR(AF$8*AF$7-SUM(AK$5:AK10)-AL10,"")
 
Last edited:
Upvote 0
You're welcome, glad to help.
 
Upvote 0
I was going to reformat the column as CUSTOM 0;;;@ which then hides zeros, but that also deletes the 2 decimal places in that column.

FYI you could have used 0.00;;;@
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

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