Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

All cells in a row match in multiple columns

Posted on 2014-04-14
4
Medium Priority
?
206 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
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 …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

971 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