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 June 29th, 2011, 09:59 AM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Find Common Values form 5 Columns

Hi,
I have a sheet in which there are some names in column A to E. Some names are repeted not all. I have to mention the common names in F column which are using in those 5 columns. Waiting for reply. Thanks.
 
Old June 30th, 2011, 03:24 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

A CountIF function should be able to get you the count of a particular Cell having the same value in a particular range

For example, place the following in any cell say G4.

=COUNTIF(A:E,F4)

It will get you the count of the value in F4 avaialble in the range. Count = 0 means the name is not used at all

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

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old June 30th, 2011, 07:02 AM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Find Common Values form 5 Columns

Many thanks. Its working nice.
 
Old July 9th, 2011, 11:04 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Glad to hear that. Good luck

Cheers
Shasur
__________________
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
code to check values in two columns?? Mazzy Excel VBA 2 December 13th, 2007 07:39 AM
getting values from template columns itemtemplate Laxmikant_it ASP.NET 1.0 and 1.1 Professional 4 February 6th, 2007 04:19 PM
How find duplicates when I have several columns? boson SQL Language 1 October 15th, 2004 08:44 AM
Common question, not so common answer? flyin ADO.NET 5 March 24th, 2004 06:50 PM
Find Common Data nbryson SQL Language 4 December 19th, 2003 05:25 AM





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