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

01/01/2013</SPAN>6</SPAN>17</SPAN>21</SPAN>26</SPAN>35</SPAN>
01/01/2013</SPAN>1</SPAN>2</SPAN>15</SPAN>17</SPAN>20</SPAN>
02/01/2013</SPAN>7</SPAN>10</SPAN>15</SPAN>25</SPAN>31</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL span=5></COLGROUP>


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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,217,455
Messages
6,136,749
Members
450,025
Latest member
Beginner52

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