1

Image 1

Hello All,

I've alter question in simpler way.

Right now I'm working on image where Col A & B has some values. I've to find values in Col C, where if Col A values "No Windows" & Col B values "No SQL".

I've used formula of IF AND statement in Col C. The Col C will represent it as "Yes" where Col A values "No Windows" & Col B values "No SQL" else formula will reflect it as "no".

For reference: In Col D represent the actual result needed after formula is applied.

Formula used : IF AND statement in Excel

=IF(AND(A2="No Windows",B2="No SQL"),"Yes","no")
5
  • Not sure what you're asking. Do you mean if "No Windows" is in column A and something other than "No SQL" is in column B you want to delete the entries, or copy them somewhere and then delete? Commented Apr 21, 2020 at 18:53
  • @SJR I've alter question. Commented Apr 22, 2020 at 3:58
  • Have you checked to see if there are leading or trailing spaces? Try trim(a2) and trim(b2) in the and()... Commented Apr 22, 2020 at 4:18
  • @SolarMike Yeah Trim worked. Commented Apr 22, 2020 at 4:36
  • Glad it helped - had that issue myself. Commented Apr 22, 2020 at 4:46

1 Answer 1

2

So sometimes the data tested has leading or trailing spaces, try using trim() like this:

=IF(AND(trim(A2)="No Windows",trim(B2)="No SQL"),"Yes","no")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.