compare multiple cells

linkn00

New Member
Joined
Aug 15, 2019
Messages
40
Office Version
  1. 365
Platform
  1. Windows
Is there a way to compare all cells in a row against each other to make sure they are not the same?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
For whole rows (row 1 in the formula) :
=IF(SUMPRODUCT((COUNTIF(1:1,1:1)-1)*(1:1<>""))>0, "Dup's","No Dup's")

If you don't want for whole rows, change 1:1 to required range.
 
Upvote 0
Thanks a lot, exactly what i am looking for. Such a life saver ;)
 
Upvote 0
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version.

IF you have Excel 365 with the new Dynamic Array functions, this would be another way. With limited testing this also seems to be significantly faster when dealing with large ranges (like whole rows)

=IF(COUNTA(UNIQUE(FILTER(1:1,1:1<>""),1))=COUNTA(1:1),"No Dup's","Dup's")
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top