Solved

All cells in a row match in multiple columns

Posted on 2014-04-14
4
196 Views
Last Modified: 2014-04-14
I need a formula that will produce the word "Yes" or "No" in the Match column if all the cells in a row of 4 columns match

Example

Column 1     Column2     Column3     Column4     Match
Apple            Apple          Orange         Apple          NO
Banana         Banana      Banana         Banana       YES
0
Comment
Question by:ablove3
4 Comments
 
LVL 13

Accepted Solution

by:
Santosh Gupta earned 250 total points
ID: 39999954
Try
=IF(AND(A1=B1,B1=C1,C1=D1),"yes","no")
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39999962
Try

=IF(SUMPRODUCT(--(A2:C2=B2:D2))=3,"Yes","No")
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39999986
Try:

=IF(COUNTIF(A2:D2,A2)=4,"YES","NO")
0
 

Author Closing Comment

by:ablove3
ID: 40000040
I selected this answer, because it gave me the flexibilty to compare columns that were not all next to each other.

Thank you all for your input.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now