Solved

All cells in a row match in multiple columns

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

813 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

16 Experts available now in Live!

Get 1:1 Help Now