Macro to sort Ascending,identify duplicates& highlight yellow
HI,
Trying to build a macro- to sort the list(ascending) of numbers in column A and identify duplicates and highlight them yellow. Only catch to this is one month the list might have 100 cells information, next month it only be 50.
I am guessing it will incorporate if then else statement(for identifying duplicates) and relative range to do both sorting.
Any suggestions is greatly appreciated.
You can try to use formula in conditional formating
Hi, You can try this, firstly mark column A = select, then set Format, Conditional formating, use formula, set custom format.
formula:
=COUNTIF(A:A,A1)>1
=COUNTIF(A:A;A1)>1 country oriented, works in Czech Republic
http://www.mrexcel.com/articles/dupl...formatting.php
GOOD LUCK AND GOOD NIGHT
Pavel Humenuk
You guys r Rockstars!! Thanks
Thanks Guys it really worked!! here is another question what if i want to extended the sorting to column J as Column A Numbers have information extended till column J.
I am trying to learn about Range- eventually wanna sort column A to J and highlight the duplicates.
Thanks a lot..
Me is also learning, Thanks to Everybody
It is beautiful to see clear code, Thanks a lot to Everybody,
It is also beautiful to see help pro users to us,
mdmackillop, xld and Doodle80, all other users,
wish You to have a nice day,
Pavel Humenuk
It could be possible only if it is range, not column
=COUNTIF($A$2:$A$10,A2)>1
happy and sunny winter day to everybody
Pavel Humenuk
This is office behavior, must to edit it twice
May be me is wrong, but it happened to me in office2007,
if me pasted formula, conditional formating was set wrongly,
so me edited it again and it was OK, if it was the question.
when it is not working select A2:A10 and
edit stored conditional formating again,
Pavel
=COUNTIF($A$2:$A$10,A2)>1
Quote:
Originally Posted by mdmackillop
That gives me
=COUNTIF($A$2:$A$10,IT65535)>1
or using $A2 I get
=COUNTIF($A$2:$A$10,$A65535)>1