Highlighting duplicate number from row usin one formula for all the range

Ingolf

Banned
Joined
Mar 20, 2011
Messages
809
Hi,
I have many rows and everyone has 6 numbers like this:

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>M</th><th>N</th><th>O</th><th>P</th><th>Q</th><th>R</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">49</td><td style="text-align: right;;">17</td><td style="text-align: right;;">27</td><td style="text-align: right;;">11</td><td style="text-align: right;;">17</td><td style="text-align: right;;">8</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">33</td><td style="text-align: right;;">27</td><td style="text-align: right;;">39</td><td style="text-align: right;;">33</td><td style="text-align: right;;">9</td><td style="text-align: right;;">30</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">22</td><td style="text-align: right;;">14</td><td style="text-align: right;;">42</td><td style="text-align: right;;">35</td><td style="text-align: right;;">13</td><td style="text-align: right;;">30</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">23</td><td style="text-align: right;;">18</td><td style="text-align: right;;">8</td><td style="text-align: right;;">33</td><td style="text-align: right;;">42</td><td style="text-align: right;;">24</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">13</td><td style="text-align: right;;">5</td><td style="text-align: right;;">2</td><td style="text-align: right;;">15</td><td style="text-align: right;;">36</td><td style="text-align: right;;">36</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">5</td><td style="text-align: right;;">37</td><td style="text-align: right;;">19</td><td style="text-align: right;;">22</td><td style="text-align: right;;">23</td><td style="text-align: right;;">10</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">12</td><td style="text-align: right;;">24</td><td style="text-align: right;;">49</td><td style="text-align: right;;">16</td><td style="text-align: right;;">3</td><td style="text-align: right;;">22</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;">17</td><td style="text-align: right;;">5</td><td style="text-align: right;;">28</td><td style="text-align: right;;">8</td><td style="text-align: right;;">42</td><td style="text-align: right;;">48</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;">11</td><td style="text-align: right;;">42</td><td style="text-align: right;;">28</td><td style="text-align: right;;">35</td><td style="text-align: right;;">48</td><td style="text-align: right;;">15</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;">49</td><td style="text-align: right;;">7</td><td style="text-align: right;;">2</td><td style="text-align: right;;">16</td><td style="text-align: right;;">25</td><td style="text-align: right;;">41</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;">27</td><td style="text-align: right;;">4</td><td style="text-align: right;;">30</td><td style="text-align: right;;">19</td><td style="text-align: right;;">44</td><td style="text-align: right;;">6</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: right;;">27</td><td style="text-align: right;;">20</td><td style="text-align: right;;">40</td><td style="text-align: right;;">39</td><td style="text-align: right;;">31</td><td style="text-align: right;;">32</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: right;;">46</td><td style="text-align: right;;">30</td><td style="text-align: right;;">17</td><td style="text-align: right;;">7</td><td style="text-align: right;;">22</td><td style="text-align: right;;">10</td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: right;;">2</td><td style="text-align: right;;">27</td><td style="text-align: right;;">44</td><td style="text-align: right;;">20</td><td style="text-align: right;;">31</td><td style="text-align: right;;">23</td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style="text-align: right;;">23</td><td style="text-align: right;;">37</td><td style="text-align: right;;">29</td><td style="text-align: right;;">39</td><td style="text-align: right;;">1</td><td style="text-align: right;;">10</td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style="text-align: right;;">26</td><td style="text-align: right;;">23</td><td style="text-align: right;;">17</td><td style="text-align: right;;">19</td><td style="text-align: right;;">13</td><td style="text-align: right;;">3</td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: right;;">4</td><td style="text-align: right;;">6</td><td style="text-align: right;;">16</td><td style="text-align: right;;">48</td><td style="text-align: right;;">1</td><td style="text-align: right;;">24</td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style="text-align: right;;">12</td><td style="text-align: right;;">47</td><td style="text-align: right;;">3</td><td style="text-align: right;;">18</td><td style="text-align: right;;">17</td><td style="text-align: right;;">22</td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style="text-align: right;;">46</td><td style="text-align: right;;">32</td><td style="text-align: right;;">24</td><td style="text-align: right;;">18</td><td style="text-align: right;;">5</td><td style="text-align: right;;">35</td></tr><tr ><td style="color: #161120;text-align: center;">21</td><td style="text-align: right;;">8</td><td style="text-align: right;;">23</td><td style="text-align: right;;">13</td><td style="text-align: right;;">29</td><td style="text-align: right;;">25</td><td style="text-align: right;;">7</td></tr></tbody></table><p style="width:3,6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Foaie3</p><br /><br />

I need a conditional formula to highlighting duplicate number from rows . For first row I put in CF this formula =COUNTIF($M$2:$R$2;M$2)>1. I need if is possible one formula for all range.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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