IF(ISERROR

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
233
Office Version
  1. 2021
Platform
  1. Windows
I have a formula [=IF(ISERROR((B3/B4)),0,((B4-B3)/B4))] that returns the correct percentages for Columns B & F, but not D.
I need to adjust it so that results in B & F show as is and where D4 equals ZERO no matter what the amount in D3 is, the percentage for D2 would always be 100%.

EG: B 0.00% D 100.00% F 50.00%

Thanks in advance for any assistance.

241106 if error.xlsx
BCDEF
20.00%0.00%50.00%
3$ -$ 0.50$ 0.50
4$ -$ -$ 1.00
5
6100.00%
Blank
Cell Formulas
RangeFormula
B2,F2,D2B2=IF(ISERROR((B3/B4)),0,((B4-B3)/B4))
 
OK. Then how about:
=IF(AND(B4,B4+B3),ABS((B4-B3)/B4),--OR(B3))
Seems to work fine to me but I don't see any advantage to the simpler one (to me) in post 7.

I do note that our formulas can give different results in some circumstances but we don't actually know what is possible/impossible with the OP's data, so unless we hear of a problem it doesn't matter as far as I can see.
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Thank you Phuoc; Peter and Scott, really appreciate the time and effort you put in to help us dummies.
I have marked Phuoc's as the correct answer as it was correct for the information I provided originally.
For my amended post, Peter yours works as does both of Scott's.
More than one way to skin a cat as the saying goes.
Cheers, to all three for your help.
Dave.
 
Upvote 0
Cheers. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,157
Members
452,615
Latest member
bogeys2birdies

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