Solved

All cells in a row match in multiple columns

Posted on 2014-04-14
4
197 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel conversion issue with Sql server 14 46
Search for a value in Column? 5 21
splitting text of cell to columns 14 24
Mac Excel column treating text as date 2 28
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

919 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

13 Experts available now in Live!

Get 1:1 Help Now