Problem with If Formula

microhunt

New Member
Joined
Aug 14, 2017
Messages
39
I am using the following formula in cell A5. I would like if N5 is blank then A5 also return blank. If N5 is 0 or is greater than zero then equals K5. I am nearly there but cannot get the results I want

Here is the conditions for the formula.

Excel Formula:
=IF(OR(T5="FALSE",B5>0,N5>=0.01),K5,IF(OR(T5="TRUE",O5>0),K5,""))


If T4 is false and B4 or N4 is greater than zero or equal to then output "K4" If T4 is false and B4 and N4 or both blank then output nothing just blank.

If T4 is True and N4 or O4 is greater than zero or equal to then output "K4" If T4 is True and N4 and O4 or both blank then output nothing just blank.

Any help would be appreciated
 

microhunt

New Member
Joined
Aug 14, 2017
Messages
39
ok,
did you try

JamesCanale

formula

you said
B4 or N4 is greater than zero or equal to
NOW
AND( B4<=0,N4<=0)
Thats NOT an OR - both B4 AND N4
Also a blank cell as mentioned previously is seen as a zero and as posted by

JamesCanale

ISBLANK() will be used
Thanks for your reply, sorry I am not grasping exactly what you mean. Can you please give me sample formula?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,981
Office Version
  1. 365
Platform
  1. MacOS
post number #12 & #15
a member named

*JamesCanale

posted a formula
 

microhunt

New Member
Joined
Aug 14, 2017
Messages
39
Excel Formula:
=IF(T4,IF(OR(AND(N4>=0,NOT(ISBLANK(N4))),AND(O4>=0,NOT(ISBLANK(O4)))),K4,IF(AND(ISBLANK(N4),ISBLANK(O4)),"","other condition")),IF(OR(AND(B4>=0,NOT(ISBLANK(B4))),AND(N4>=0,NOT(ISBLANK(N4)))),K4,IF(AND(ISBLANK(B4),ISBLANK(N4)),"","other condition")))
this is pretty cool😊😊😊 and works brilliant. I will test and see if I can see anything wrong but all looks good so far
 

microhunt

New Member
Joined
Aug 14, 2017
Messages
39
Thanks.

You also don't have to do if(T4="True",...) you can just do if(T4,...)

I put 'other condition' to account for the possibility of putting in negative numbers (which might never happen) in some of those cells.
Very Impressive, works brilliant. Totally blown away. Thanks James
 

Forum statistics

Threads
1,144,394
Messages
5,724,087
Members
422,536
Latest member
Zeeshan53

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