Solved

Excel VB.net  and SQL Check for duplicates in two columns before uploading

Posted on 2014-09-23
3
364 Views
Last Modified: 2014-09-23
Hi

I have a spreadsheet containing where I need to check for duplicate rows where a date in column A and a text item in column D are equal
The first thought is to loop through all items and check each line against this but this will take far too long
0
Comment
Question by:murbro
3 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40338743
I'm confused - how are you trying to do this? In Excel, in Excel VBA, or in VB.Net? Please elaborate.
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40339623
In Excel only:

If you want to remove duplicate values WITHIN each column, you can use the built-in "Remove Duplicates" tool.  This is incredibly fast and efficient.
1) Select the entire column (click on the column letter)
2) Menu: Data - Data Tools group - "Remove Duplicates"
2b) If prompted with a "Remove Duplicates Warning" dialog box, select "Continue with the current selection", then click the "Remove Duplicates" button
- Repeat this for each column.
------------------------------------------------
If you have a different issue or request, please elaborate.

Regards,
-Glenn
0
 

Author Closing Comment

by:murbro
ID: 40339787
thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now