1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

How to use AND and OR conditions within the same formula

Our take

To create a formula that uses both AND and OR conditions effectively, you can combine these logical functions in a single expression. In your case, you want to check if cell A equals 0 and if cell B is either 0, 1, or 2. The formula you need is: `=AND(A1=0, OR(B1=0, B1=1, B1=2))`. This approach ensures that both conditions are evaluated correctly, yielding TRUE only when A is 0 and B matches one of the specified values. Feel free to reach out if you

Hello! I’m trying to write a formula with the following conditions:

If cell A=0 AND cell B=0 or cell B=1 or cell B=2 then the outcome is TRUE

It should be very simple, but I couldn’t figure it out. Thanks in advance.

Edit for clarity, the below is the condition I am after:

A = 0

AND

B is one of 0, 1, 2

submitted by /u/pinkdaisiesss
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#Excel alternatives for data analysis#AI formula generation techniques#rows.com#formula generator#natural language processing for spreadsheets#generative AI for data analysis#Excel compatibility#financial modeling with spreadsheets#Excel alternatives#formula#AND#OR#conditions#cell#outcome#TRUE#A#B#0#1