+ Reply to Thread
Results 1 to 7 of 7

Compare data and remove the latest

  1. #1
    Registered User
    Join Date
    12-18-2013
    Location
    chennai,india
    MS-Off Ver
    Excel 2010
    Posts
    24

    Compare data and remove the latest

    Hi Team,

    Please find the attached.
    what i need is sort the data,compare two cells of similar S.NO and retain highest RANK (alpha character C>B>A higher order)

    example

    S.NO RANK
    1 A
    1 C
    1 B

    compare 1-A,1-C and it should select 1-C as "C'' is the highest in the alphabetical order.Then compare 1-C and 1-B and select 1-C.
    Please see the attached and help me out with a solution.

    Thanks
    Sany
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Compare data and remove the latest

    1 sort data on two keys: S.NO (asc or desc does not matter) and RRANK (desc).
    use Delete duplicates (only S.NO)

    Ready.

    PS. correct your profile info - you do not use excel 2003.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    12-18-2013
    Location
    chennai,india
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Compare data and remove the latest

    Thanks Kaper,

    I will try your solution and confirm the same.

    Thanks
    Sany.

  4. #4
    Registered User
    Join Date
    12-18-2013
    Location
    chennai,india
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Compare data and retain the latest

    it worked for in the attached xls.Thanks.
    Now I have another problem.There is a rank term "NC".Now i need to compare any alphabet with NC and NC has to be considered as the least compared to A
    S.NO RANK
    1 A
    1 NC
    1 C
    1 has to be compared and sorted as NC<A<C

    Please help.
    thanks
    sany
    Attached Files Attached Files
    Last edited by sanyaa; 04-02-2014 at 11:55 AM.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Compare data and remove the latest

    in C2 formula:
    Please Login or Register  to view this content.
    copy down
    then the same idea as previously:

    1 sort data on two keys: S.NO (asc or desc does not matter) and column C (desc).
    use Delete duplicates (only S.NO)
    Ready.

    and again:
    PS. correct your profile info - you do not use excel 2003.

  6. #6
    Registered User
    Join Date
    12-18-2013
    Location
    chennai,india
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Compare data and remove the latest

    please let me know how to chnage the profile info.

    Sorry for the mistake.

    thanks
    sany

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Compare data and remove the latest

    go to: http://www.excelforum.com/profile.php?do=editprofile and there is a field "Microsoft Office version"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] compare duplicate and retain only latest one
    By nigel1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2014, 04:46 AM
  2. Replies: 9
    Last Post: 11-28-2013, 05:20 PM
  3. Replies: 10
    Last Post: 06-10-2013, 01:18 PM
  4. [SOLVED] Compare Column 1 to Col 2, if data in Col1 = Col2, remove the row containing that data
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-04-2012, 05:28 PM
  5. Remove duplicates but keep the one with latest date
    By nee2m in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 10:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1