[Solved] How can I delete duplicate records from Excel while keeping only unique entries?

1 Answer 4 Views
General Discussions UI for ASP.NET AJAX in ASP.NET MVC
Keth
Top achievements
Rank 1
Iron
Keth asked on 06 Jul 2026, 10:26 AM

If your worksheet contains repeated records, you can either use Excel's built-in Remove Duplicates feature or a more advanced utility for greater control. The advantage of specialized software is that it allows you to define exactly how duplicates should be identified.

You can compare selected columns, remove duplicate records, and retain only unique entries while preserving the workbook's original structure and formatting.


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Jul 2026, 02:42 PM

Hi Keth,

Thank you for sharing your approach for handling duplicate records in Excel worksheets. To clarify, are you looking for guidance on how to remove duplicates from your data before displaying it in RadGrid, or do you want to handle duplicates directly within your ASP.NET application?

Key Points for RadGrid Integration:

  • RadGrid will display all records provided by its data source, so duplicates must be removed before binding.
  • Excel's built-in "Remove Duplicates" feature is effective for preprocessing data manually.
  • For automated solutions within your application, you can use C# and LINQ to remove duplicates programmatically.

Example: Removing Duplicates in C# Before Binding to RadGrid If you want to ensure only unique entries are displayed in RadGrid, you can filter your data in code:

void BindData()
{
    var allNames = Names.GetDeailesByGetall(con);
    var uniqueNames = allNames
        .GroupBy(x => new { x.FirstName, x.LastName }) // Choose columns to define uniqueness
        .Select(g => g.First())
        .ToList();

    grid_1.DataSource = uniqueNames;
    grid_1.DataBind();
}
  • Replace FirstName and LastName with the columns you want to use for identifying duplicates.

    Regards,
    Rumen
    Progress Telerik

    Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
    Tags
    General Discussions UI for ASP.NET AJAX in ASP.NET MVC
    Asked by
    Keth
    Top achievements
    Rank 1
    Iron
    Answers by
    Rumen
    Telerik team
    Share this question
    or