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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,230
Office Version
  1. 365
Platform
  1. Windows
Can you provide about five rows of sample data, along with the actual expected result, based on the data provided?
 

hotrod

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

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,230
Office Version
  1. 365
Platform
  1. Windows
Try...

AL1, copied down:

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

Hope this helps!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,288
Messages
5,836,430
Members
430,428
Latest member
Deepak Tanwar

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
Top