Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Charles
 
Posts: n/a
Default LOOKING UP A TABLE/SHEET AND MATCH FOR A STRING OR NUMBER

I have two workheets. "WORKSHEET ONE" has a list of LAST names in column A.
"WORKSHEET TWO" has a list of names last names and first names. Lastnames
are in column A and first names in column B.
What I want to do is look up the last names in worksheet TWO and whenever
there is a match in worksheet ONE move the correstponding first name to
column B of worksheet A.
I have tried all the LOOKUP functions but the problem that I have is that I
want it only to work when there is an EXACT match!
Can this be done if so how.
Thank you!
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Charles

use VLOOKUP in B2 of sheet1

=VLOOKUP(A2,Sheet2!$A$1:$B$100,2,0)

this will give you the information where there is an exact match

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Charles" wrote in message
...
I have two workheets. "WORKSHEET ONE" has a list of LAST names in column
A.
"WORKSHEET TWO" has a list of names last names and first names. Lastnames
are in column A and first names in column B.
What I want to do is look up the last names in worksheet TWO and whenever
there is a match in worksheet ONE move the correstponding first name to
column B of worksheet A.
I have tried all the LOOKUP functions but the problem that I have is that
I
want it only to work when there is an EXACT match!
Can this be done if so how.
Thank you!



  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

Try this:

With datalist in A2:B20 on Sheet2
And A2:A20 on Sheet1,
Enter this in B2 of Sheet1, and drag down to copy:

=VLOOKUP(A2,Sheet2!$A$2:$B$20,2,0)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Charles" wrote in message
...
I have two workheets. "WORKSHEET ONE" has a list of LAST names in column

A.
"WORKSHEET TWO" has a list of names last names and first names. Lastnames
are in column A and first names in column B.
What I want to do is look up the last names in worksheet TWO and whenever
there is a match in worksheet ONE move the correstponding first name to
column B of worksheet A.
I have tried all the LOOKUP functions but the problem that I have is that

I
want it only to work when there is an EXACT match!
Can this be done if so how.
Thank you!


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
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Match Function arguments Stan Altshuller Excel Worksheet Functions 3 March 11th 05 08:48 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 12:30 AM.

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

About Us

"It's about Microsoft Excel"