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 August 26th, 2003, 04:50 AM
Authorized User
 
Join Date: Jun 2003
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to search for text in a diff col in Excel

 Hey guyz!!.. i would like to get data from Sheet1 column A then check if it exist in sheet3 at column A if it exists i would like to display the contents of column G of the matching row in sheet3.

If you can help with that realtime i would deeply apreciate it.

Or better if there is a function in Excel that can look for data if it exists in a different sheet please holla at me thanx

LION OF JUDDAH!
__________________
LION OF JUDDAH!
 
Old August 26th, 2003, 01:55 PM
Authorized User
 
Join Date: Aug 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

chiefouko,

There are several snippets relating to this at http://www.vba-programmer.com (in Excel Code Snippets area).

Selecting cells, determining last cells with data, and selecting different sheets.

CarlR

 
Old September 22nd, 2004, 06:57 PM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use VLOOKUP, this is a function key.

In SHEET1 cell B1, type =VLOOKUP(A1,SHEET3!A:G,7,FALSE) or follow the function key.

=VLOOKUP(A1, means look for the value of SHEET1 cell A1

SHEET3!A:G,7, means within SHEET3 from col A to G take the value on the 7th col (G).

FALSE means return the value only if SHEET1 cell A1 is exactly the same as SHEET3 cell A1.

Goodluck


Quote:
quote:Originally posted by chiefouko
 Ã‚ Hey guyz!!.. i would like to get data from Sheet1 column A then check if it exist in sheet3 at column A if it exists i would like to display the contents of column G of the matching row in sheet3.

If you can help with that realtime i would deeply apreciate it.

Or better if there is a function in Excel that can look for data if it exists in a different sheet please holla at me thanx

LION OF JUDDAH!
 
Old September 29th, 2004, 11:42 PM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Anantsharma Send a message via Yahoo to Anantsharma
Default

Hi,

Well VLOOKUP is good option to use. Its fast and short. If u still face problems, u can declare 2 excel sheet objects and compare one by one within two loops. When ever a match in found, get the Value of Colum G of sheet3 object.

I guess u know the Syntax well. Please ask if u never used the syntax.

B. Anant





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regd: Issues with designing text diff form gk_sezhian C# 1 May 11th, 2008 11:30 AM
Read a column and Search Row by Row in another col AyatKh Excel VBA 2 January 26th, 2005 12:02 PM
Search Engine for Full-text Search Kala ASP.NET 1.0 and 1.1 Professional 2 August 29th, 2004 02:16 AM
read text file to exact diff depts kud Excel VBA 2 June 4th, 2004 05:37 PM
add same data in diff table / search yylee Access VBA 8 April 13th, 2004 02:39 AM





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