Share via

Nested if(AND)

Kayanne Schauberger 0 Reputation points
2025-10-09T12:47:46.25+00:00

I have 3 Columns that I need to match three other columns to complete the process. Such as: A=B and C=D and E=F. If all of these are true annotate N, otherwise leave blank.

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Rin-L 21,360 Reputation points Microsoft External Staff Moderator
    2025-10-09T13:38:13.7633333+00:00

    Hi @Kayanne Schauberger

    Thank you for posting your question in the Microsoft Q&A forum. 

    Assuming the following setup: 

    • Columns A, C, E contain your original values 
    • Columns B, D, F contain the values to match 
    • You want the result in Column G 

    You can use this formula in cell G1:  

    =IF(AND(A1=B1,C1=D1,E1=F1),"N","")  
    

    then drag the formula down to apply it to all rows in Column G. 

    User's image

    Explanation:  

    • AND(A1=B1, C1=D1, E1=F1) checks whether all three conditions are TRUE
    • If TRUE, the formula returns "N". 
    • If FALSE, it returns a blank cell (""). 

    This approach is simple and effective for comparing multiple columns row by row. 

    If you have any updates or further questions, feel free to leave a comment under this post. I’ll be happy to continue assisting you. 

    Thank you for your time, and I hope this helps! 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. User's image

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.