TRUE/FALSE statements and blank cells

HugoRune

New Member
Joined
Nov 12, 2009
Messages
29
Hi Chaps,

Why is it that when I use the following formula in cell C3...=IF(A1>0.95,"A","")

and then in cell A1 i have the formula =IF(ISERROR(B2/B3),"",SUM(B2/B3))

I get the result "A" even though cell A1 results in either a #N/A! #DIV/0! error.


Is there any way around this?

Cheers
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Excel treats the "" value as being >0.

Just change your A1 formula to

=IF(ISERROR(B2/B3),0,B2/B3)

(in any case, best practice suggests that you should use a zero anyway so that the result in A1 is always numerical)
 
Upvote 0
BTW if you are using Excel 2007 or later you can use this in A1:

=IFERROR(B2/B3,0)
 
Upvote 0
Hi Hugo,

I'm not sure if it is what you need, but if you want to get the value in A1, change from
Code:
=IF(A1>0.95,"A","")
to
Code:
=IF(A1>0.95,A1,"")
Regards
 
Upvote 0

Forum statistics

Threads
1,224,519
Messages
6,179,263
Members
452,902
Latest member
Knuddeluff

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