Problem with If Formula

microhunt

Board Regular
Joined
Aug 14, 2017
Messages
57
Office Version
  1. 2021
Platform
  1. Windows
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
 
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?
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,040
Members
448,543
Latest member
MartinLarkin

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