hi, the company as to sort and the duplicate records as to show with color
pls. help to solve.
regards
Josh
hi, the company as to sort and the duplicate records as to show with color
pls. help to solve.
regards
Josh
So you need the data to be sorted and then if there are multiple records, to put a M, if only a single record, put a S?
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
hi josh,
in order for you to highlight duplicate rows, you may need to use a helper column (which you can hide). are you fine with that?
if so, in the file that you have provided, put this formula in cell F2 and drag-fill the formula downwards up to F22.
then, create a Conditional Formatting rule, where the formula is:Please Login or Register to view this content.
choose Format to be appled as yellow background. then, set Applies To to "=$A$2:$F$22" and save this rule.Please Login or Register to view this content.
you will see that all duplicate rows have been highlighted.
now, sorting can be done very easily - highlight cell A1 (Name), then invoke the Sort menu (ALT > A > S). choose to Sort By "Name" and click on OK. that's it.
i have also inserted another column to display M or S depending on whether there are duplicates or not.
- i.s.z -
CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
All good ideas are courtesy resources from this forum as well as others around the web.
- e.o.m -
thanks a lot
perusjosh,
Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.
In future, to mark your thread as Solved, you can do the following -
Select Thread Tools-> Mark thread as Solved.
Incase your issue is not solved, you can undo it as follows -
Select Thread Tools-> Mark thread as Unsolved.
Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
This formula is execute only few range only
=COUNTIF($A$2:$A$22,$A2)
if i have more records what is formula can use (commonly to find duplicate records)
regards
Josh
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks