IFERROR formula

janema

Board Regular
Joined
Nov 28, 2022
Messages
117
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2011
  5. 2010
Platform
  1. Windows
  2. Mobile
I know this is a simple formula, but it keeps telling me I have too many arguments. :( I just want the field to be blank if the result of this calculation is an error.

This is the calcuation:

=(G13-C13)/C13


I tried doing =IFERROR(G13-C13)/C13,"") and =IF(G13-C13)/C13=ISERROR,""), but no luck.

Any suggestions?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi, try this formula
=IFERROR((G13-C13)/C13,"")
 
Upvote 1
Solution
I know this is a simple formula, but it keeps telling me I have too many arguments. :( I just want the field to be blank if the result of this calculation is an error.

This is the calcuation:

=(G13-C13)/C13

I tried doing =IFERROR(G13-C13)/C13,"") and =IF(G13-C13)/C13=ISERROR,""), but no luck.

Any suggestions?
You have unbalanced parentheses in the first formula.
 
Upvote 0
Hi, the your second formula can also be improved:
=IF(ISERROR((G13-C13)/C13),"")
 
Upvote 0
When you get an error, is it a #DIV/0! error?
If so, you could just use ..
Excel Formula:
=IF(C13,(G13-C13)/C13,"")
 
Upvote 0
When you get an error, is it a #DIV/0! error?
If so, you could just use ..
Excel Formula:
=IF(C13,(G13-C13)/C13,"")
This got rid of the blank, but it wouldn't calculate correctly when there are values in those fields. I get a "FALSE" result.
 
Upvote 0
Hi, the your second formula can also be improved:
=IF(ISERROR((G13-C13)/C13),"")
This got rid of the blank, but it wouldn't calculate correctly when there are values in those fields. I get a "FALSE" result.
 
Upvote 0
This got rid of the blank, but it wouldn't calculate correctly when there are values in those fields. I get a "FALSE" result.
can you paste the forumula that is in your cell and tell us what values are in the two fields. Do you have the "" after the parenthese and comma?
 
Upvote 0
actually change your formula to this:

Excel Formula:
=IF(ISERROR((G13-C13)/C13),"",(G13-C13)/C13)

or
Excel Formula:
=IFERROR((G13-C13)/C13),"")
 
Upvote 0

Forum statistics

Threads
1,216,434
Messages
6,130,611
Members
449,584
Latest member
c_clark

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