# Counting duplicate numbers for a row.

#### hotrod

##### Board Regular
I've setup conditional formatting for a table and the formulas are =COUNTIF(\$AF65536:\$AK65536,AF1)>0 and =COUNTIF(\$AF2:\$AK2,AF1)>0.
Row 2 and row 3 are compared together and duplicates are higlighted. Then 3 and 4 rows are compared together and etc till the end of the table.
Need help with formula to count how many duplicates are highlighted for each row in the table.
Many thanks

### Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Can you provide about five rows of sample data, along with the actual expected result, based on the data provided?

Workbook display, Colo's HTML, not working (admin notified). Read something about Jeanie? when I was checking forums to get answers before I post questions. But do you think I could find it when I needed it to work out what else I can do.

Hope the following is clear as mud.

AF
223 888 275 305 425 300 TOTAL (AL)1 formula required for the row total (blue cells).
626 888 153 234 440 505 TOTAL ......1 "
594 328 332 369 400 440 TOTAL ......2 "
251 594 400 422 435 179 TOTAL ......0 "
330 150 304 337 395 395 TOTAL ......0 "

"=COUNTIF(\$AF65536:\$AK65536,AF1)>0
Yellow - row 2/888, row 3/440, row 4/594 & 400

"=COUNTIF(\$AF2:\$AK2,AF1)>0
Blue - row 1/888, row 2/440, row 3/594 & 400

Try...

AL1, copied down:

=SUMPRODUCT(COUNTIF(AF2:AK2,AF1:AK1))

Hope this helps!

Hooray, problem solved.
Thank you Domenic

Replies
8
Views
373
Replies
3
Views
456
Replies
7
Views
398
Replies
3
Views
421
Replies
9
Views
324

1,217,382
Messages
6,136,234
Members
450,000
Latest member
jgp19

### 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.

### Which adblocker are you using?

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

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