Nested IF, AND, OR

AMC2

New Member
Joined
Dec 10, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Morning. I'm trying (failing) to find the right syntax to return data using a nested IF, and then OR, AND
Requirements:
IF, Cell A = "Approved" OR "Authorized", and Cell B = Not blank, the formula should return "Reauth". If Cell B is Blank, Return nothing.

If Cell A is anything other than "Approved" or "Authorized the result should be nothing.

I feel like I'm making this more confusing than it should be...but pretty new to excel functions and trying to figure out the most eloquent way to get the result.

The Syntax I tried:
=IFS(AND(A2="Approved", ISBLANK(B2)), "", AND(J2="Authorized", ISBLANK(B2)), "")

Would appreciate any help figuring this out.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
=IF(OR(A1="Approved",A1="Authorized")=FALSE,"",IF(AND(OR(A1="Approved",A1="Authorized"),B1<>""),"Reauth",IF(B1="","")))
 
Last edited:
Upvote 0
Solution
Try this -

Excel Formula:
=IFS(AND(OR(A2="Approved",A2="Authorized"),ISBLANK(B2)),"",True,"Check")
 
Upvote 0
=IF(OR(A1="Approved",A1="Authorized")=FALSE,"",IF(AND(OR(A1="Approved",A1="Authorized"),B1<>""),"Reauth",IF(B1="","")))
Thanks. When I plug this in, it is returning the opposite of what I'd expect to see. It's working for anything where A1 is not approved, or authorized, but where B2 is not blank, it's the opposite.
 
Upvote 0
Thanks. When I plug this in, it is returning the opposite of what I'd expect to see. It's working for anything where A1 is not approved, or authorized, but where B2 is not blank, it's the opposite.
Can you provide some sample data
 

Attachments

  • cape.PNG
    cape.PNG
    14.3 KB · Views: 6
Upvote 0
Thanks. When I plug this in, it is returning the opposite of what I'd expect to see. It's working for anything where A1 is not approved, or authorized, but where B2 is not blank, it's the opposite.
Nevermind, I found my mistake when I copied over. This works beautifully. Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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