Problem with multiple IF statements, sometimes returns "FALSE"

olivierv

New Member
Joined
Jul 25, 2014
Messages
29
Hi guys,

I got the following problem. I have a dataset that for which I want to allocte a "1" or a "0" for specific combinations of IF statements.

I'm using the following formula: =IF(ISTEXT(P10),"",IF(P10>25%,IF(Q10>10%,IF(R10>5%,1,0))))

However, in some cases it returns "FALSE" instead of a "1" or a "0". I need to code it like this as I want to do a panel regression. Can anyone tell me what I'm doing wrong?

fo1vea.png
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Not sure but wouldn't AND be better

=IF(ISTEXT(P10),"",IF(AND(P10>25%,Q10>10%,R10>5%),1,0))
 
Upvote 0
In your formula your 2nd and 3rd IFs have no false statement. Go to the formula bar. Click the 2nd IF and press the fx button. You will see the FALSE box is empty.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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