Trying to Remove False from Formula

Shazir

Banned - Rules violations
Joined
Jul 28, 2020
Messages
94
Office Version
  1. 365
Platform
  1. Windows
Hi, I have been using this below mentioned formula but i am trying to remove the false sign when condition is not met then it should empty rather than false someone can please help in this regard.

=IF(E2<>"","King",IF(F2<>"","King",IF(AND(E2<>"",F2<>""),"King")))

1602253787481.png
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
As you are returning the same value each time.
How about
Excel Formula:
 =IF(AND(E2<>"",F2<>""),"King","")
 
Upvote 0
If there will E2<>"" and E2="" then this below

=IF(AND(E2<>"",F2<>""),"King","")

formula will not work.

I need formula with below conditions.

=IF(E2<>"","King",IF(F2<>"","King",IF(AND(E2<>"",F2<>""),"King")))

Beacuse If E2<>"" and F2="" then result will be king

if E2="" and F2<>"" then result will be king

If E2<>"" and F2<>"" then result will be king

If empty then ""
 
Upvote 0
Oops forgot to change the And to Or
Excel Formula:
 =IF(OR(E2<>"",F2<>""),"King","")
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,415
Members
448,960
Latest member
AKSMITH

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