iserror help

runeyjam

Board Regular
Joined
Feb 10, 2003
Messages
75
I am using the following equation so that I will not have error messages in my spreadsheet:

G18=-IF(ISERROR((E18-F18)/F18),"n/a",(E18-F18)/F18)

However, whenever F18 is zero I still get a #value error in cell G18. Do you have any suggestions. I do not want to type a hardcoded "n/a" in my spreadsheet.

Thanks,
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

sweater_vests_rock

Well-known Member
Joined
Oct 8, 2004
Messages
1,657
runeyjam.

Remove the "-" sign before the IF statement.

I am using the following equation so that I will not have error messages in my spreadsheet:

G18=-IF(ISERROR((E18-F18)/F18),"n/a",(E18-F18)/F18)

However, whenever F18 is zero I still get a #value error in cell G18. Do you have any suggestions. I do not want to type a hardcoded "n/a" in my spreadsheet.

Thanks,
 

cherria

Well-known Member
Joined
Nov 17, 2004
Messages
708
Its your minus sign at the start, you can't have minus "n/a"

just move the minus into the final result

IF(ISERROR((E18-F18)/F18),"n/a",-(E18-F18)/F18)
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
How about if you just check for 0 in F18?

=IF(F18=0,"n/a",-(E18-F18)/F18)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,694
Messages
5,597,571
Members
414,157
Latest member
MrBJBones

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
Top