highlight cel with repeated number

whitoulias

Board Regular
Joined
Jun 22, 2012
Messages
153
Hello to all

I have the following table going down to 3000 rows

[TABLE="width: 200"]
<TBODY>[TR]
[TD]01/01/2013</SPAN>[/TD]
[TD]6</SPAN>[/TD]
[TD]17</SPAN>[/TD]
[TD]21</SPAN>[/TD]
[TD]26</SPAN>[/TD]
[TD]35</SPAN>[/TD]
[/TR]
[TR]
[TD]01/01/2013</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]2</SPAN>[/TD]
[TD]15</SPAN>[/TD]
[TD]17</SPAN>[/TD]
[TD]20</SPAN>[/TD]
[/TR]
[TR]
[TD]02/01/2013</SPAN>[/TD]
[TD]7</SPAN>[/TD]
[TD]10</SPAN>[/TD]
[TD]15</SPAN>[/TD]
[TD]25</SPAN>[/TD]
[TD]31</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL span=5></COLGROUP>[/TABLE]


What i would like is a code checking whether a number/ or numbers is repated and then highlight it with any color.
For example the code will check the 2nd row for numbers repeating from the 1st row. Then it will check the 3rd row for numbers repeating from the 2nd line and so on.

Any ideas?

Thank you all
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Assuming your data starts in row 1 and using 2007 or later

1) Highlight your data starting in B2:F3000
2) Select Home Tab
3) Select Conditional Formating
4) New Rule
5) Use a formula
6) =SUM(IF(B2=$B1:$F1,1,0))
7) Select to fill the cell with a color
 
Upvote 0
Sorry for not mentioned it

2003 excel
Adjusting c_m_s_jr's steps from Message #2 for XL2003...

Assuming your data starts in row 1 and using 2007 or later

1) Highlight your data starting in B2:F3000
2) Click Format/Conditional Formating on the menu bar
3) Select "Formula Is" from the first drop down
4) Put this formula in the empty field to the right... =SUM(IF(B2=$B1:$F1,1,0))
5) Click the Format button
6) Select to fill the cell with a color
7) Click OK twice to return to the worksheet
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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