IFERROR WITH CALCULATION FORMULAS

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 am just having the worst time with getting formulas to work today :cry:

In column AC, I am just trying to get the formula to return BLANK if it is an error or there is no data in column Z (or if result is zero). But I keep getting an error message that there are too many arguments.

My formula is currently:

=IF((Z4/X4)=0,"","",IFERROR(Z4/X4),"", Z4/X4))

1673482636122.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try this:
Excel Formula:
=IF(OR(Z4=0,X4=0),"",Z4/X4)
 
Upvote 0
Try this:
Excel Formula:
=IF(OR(Z4=0,X4=0),"",Z4/X4)

That works to eliminate the zeros, but not for errors. Still getting some #N/A results.
 
Upvote 0
That works to eliminate the zeros, but not for errors. Still getting some #N/A results.
You shouldn't, unless you have some non-numeric values in cells X4 and Z4. If you have 0 or nothing in there, it should work.
What exactly do you have in cells X4 and Z4 when you get these errors?
 
Upvote 0
You shouldn't, unless you have some non-numeric values in cells X4 and Z4. If you have 0 or nothing in there, it should work.
What exactly do you have in cells X4 and Z4 when you get these errors?
It is either blank or a dollar amount, but there are also errors (#N/A) so that's why using the 0 in formula only eliminates the blanks
 
Upvote 0
Try

Excel Formula:
=IFNA(IF(OR(Z4=0,X4=0),"",Z4/X4),"")
 
Upvote 0
Try this:
IF((Z4/X4)=0,"",IFERROR(Z4/X4,""))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,060
Latest member
mtsheetz

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