Counting duplicate numbers for a row.

hotrod

Board Regular
Joined
Feb 3, 2009
Messages
103
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Can you provide about five rows of sample data, along with the actual expected result, based on the data provided?
 
Upvote 0
Sorry about the delay.
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
 
Upvote 0
Try...

AL1, copied down:

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

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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