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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,485
Platform
  1. MacOS
Not sure but wouldn't AND be better

=IF(ISTEXT(P10),"",IF(AND(P10>25%,Q10>10%,R10>5%),1,0))
 
Upvote 0

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,886
Office Version
  1. 365
Platform
  1. Windows
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,195,849
Messages
6,011,955
Members
441,657
Latest member
Diupsy

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