• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

compare text in several colums

janetrn

New Member
Hi, have a sheet with 6 columns of data to compare. I need to check to see if each cell matches the others exactly. If any cell on the row does not match then enter "no match" in 7th column.


Abdomen1v Abd 1v Abdomen 1 View "no match"

Chest1 Chest1 Chest1 "ok"


in the example above the first line does not match since the text is not identical.


I have tried =EXACT but this only looks at 2 cells, tried =IF(A2=B2=C2,etc) but does not provide correct results. Any suggestions?

Janet
 
Hi, janetrn!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the three first green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about your question...


Try this:

=SI(Y(A1=B1;B1=C1;C1=D1;D1=E1;E1=F1);"ok";"no match") -----> in english: =IF(AND(A1=B1,B1=C1,C1=D1,D1=E1,E1=F1),"ok","no match")


Regards!
 
Janet


Firstly, Welcome to the Chandoo.org forums.


You could also use

=IF(COUNTIF(A1:F1,A1)=6,"Match","No Match")


In your example you only had 3 Matches "Chest1" are 3 Matches and 3 Blanks valid ?
 
Hi, Thanks for the welcome. Already I find the site/forums to be helpful and ideas of how to use what I have seen here are whirling in my head! At some point will learn enough to help others and reply to post.


As for the replies to my request, Thank you for the help.


Since my data is spread across a large sheet, I used the following to more easily pick which columns to compare.


=IF(AND(E12=J12,J12=O12,O12=S12,S12=X12,X12=AC12),"ok","no match")


Janet
 
Hi, janetrn!

Glad you solved it. Thanks for your feedback and for your kind words too. Welcome back whenever needed or wanted.

Regards!
 
Back
Top