finding duplicate rows (multiple cells)

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi!
i have a file with thousands of rows containing numbers in several cells,
i want to know (not delete) which one's/how many duplicates there are?
there also can be more then 2 duplicates

it will be very helpful if the formula can write down in the next column near each row how many
but will skip the other duplicates and write them down as - or x
(like in the example below)

חוברת1
ABCDEF
1duplicates
2111120
3111233
4111340
5111450
6111560
7111620
8111772
9111850
10112160
11112210
1211177-
1311123-
14543210
1511123-
12
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I'm not crazy about a solution with a helper column. Someone on here can do better.
Book2
ABCDEFG
1
2111121-1-1-1-20
3111231-1-1-2-33
4111341-1-1-3-40
5111451-1-1-4-50
6111561-1-1-5-60
7111621-1-1-6-20
8111771-1-1-7-72
9111851-1-1-8-50
10112161-1-2-1-60
11112211-1-2-2-10
12111771-1-1-7-7-
13111231-1-1-2-3-
14543215-4-3-2-10
15111231-1-1-2-3-
Sheet1
Cell Formulas
RangeFormula
F2:F15F2=A2&"-"&B2&"-"&C2&"-"&D2&"-"&E2
G2:G15G2=IF(COUNTIF(F$1:F1,A2&"-"&B2&"-"&C2&"-"&D2&"-"&E2)=0,IF(COUNTIF($F$2:$F$15,A2&"-"&B2&"-"&C2&"-"&D2&"-"&E2)=1,0,COUNTIF($F$2:$F$15,A2&"-"&B2&"-"&C2&"-"&D2&"-"&E2)),"-")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,415
Messages
6,124,768
Members
449,187
Latest member
hermansoa

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