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,
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,
 
Upvote 0
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)
 
Upvote 0
How about if you just check for 0 in F18?

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

Forum statistics

Threads
1,214,815
Messages
6,121,715
Members
449,049
Latest member
THMarana

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