Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default How to search fields and then add to value of cell using vlookup or ?

Hello Guru's
How would i go about searching for a 5 letter code inside the
worksheet, then using that code to search to see if it matched a code
from a lookup worksheet and then use that code to place a value inside
of some cells in VBA?

example:
worksheet1 has rows
A B C D
1 NAME CODE NAME1 NAME2
2 TEST 01-thm-THISA that THISA


worksheet2 has the lookup
A B
1 CODE NAME
2 THISA THIS IS THE NAME OF A

Note that the code 'THISA' is found in B2 and D2 and it is also in the
lookup table in A2. I am going to use both the code and name.

I want it to search the fields in the worksheet, all worksheet1
If it finds a matching code in the fields (worksheet1) with the lookup
(worksheet2) use the lookup to populate the fields E (will be the code)
and F (would be the name of the code, ie: THIS IS THE NAME OF
A)........... (which are blank and not shown in this example)
Can this be done?

Basically, i am searching for a code in all the worksheet, if it finds
a matching one in the lookup sheet, then populate some cells in the 1st
sheet.

Any help would be appreciated. Thanks

Keri~

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer Comment to VLOOKUP Cell on Search CCorreia Excel Discussion (Misc queries) 3 May 23rd 08 01:57 AM
Search a spreadsheet for words in certain fields campwes Excel Programming 0 May 17th 06 08:06 PM
Using Vlookup in a string search of a cell Ralph Heidecke Excel Worksheet Functions 1 April 26th 06 06:46 PM
Vlookup using a cell value as search criteria John Davies Excel Programming 4 April 25th 06 10:32 AM
search for date fields Danny[_7_] Excel Programming 2 May 6th 04 10:48 PM


All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"