Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 23rd, 2014, 09:56 AM
Authorized User
Join Date: Nov 2014
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Default VBA code to return values of rows that returns row numbers of duplicate values


I need a vba code that does this query

It has to look if the value in column B already exists somewhere else in that column. If so, then it has to return Column A values to the first cell, wherever it matches the value.

ColA ColB ColC
1 SE1 2, 5,6
2 SE1
3 SE2 8,10
4 SE3 7,9
5 SE1
6 SE1
7 SE3
8 SE2
9 SE3
10 SE2

Kindly help,
Thank you,
Old December 5th, 2014, 03:19 AM
Friend of Wrox
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts

Hello Bharat

Here is a small snippet. Hope it helps


C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter6-Solution Row Score for duplicate rows minnie.schurr BOOK: Microsoft SQL Server 2008 Integration Services Problem-Design-Solution 1 July 6th, 2011 11:50 PM
Detecting duplicate values Europom Excel VBA 2 May 29th, 2007 07:09 AM
Dealing with duplicate rows/column values SQLScott SQL Server 2000 2 September 29th, 2005 09:04 PM
Checking Duplicate values and delete rows ppenn Excel VBA 2 February 3rd, 2004 06:57 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.