Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Lookup or VLookup or something else??

Hello, I'm trying to solve a problem and was advised to use Lookup but it's
not working. I have 2 worksheets (over 1000 records each). Each worksheet has
a column for email address. I want to reference the email address in
Worksheet 1 (column G) and then search for a match in Worksheet 2 (column F).
When the match is found I want to copy data from column A in Worksheet 2 to
column B in Worksheet 1.
This is the formula I have placed in column B of Worksheet 2:
=LOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A$ 2:$A$1159)

The step through calculator finds the email address in G2 but fails the next
step. It returns #N/A.

I also tried to use VLOOKUP without luck.
=VLOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A $1:$A$1159,FALSE)
This returns #REF.

I'm under the gun and hope someone can help!

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Lookup or VLookup or something else??

Hi,
In B2 enter
=sumproduct(--(G2=Worksheet2!$F$2:$F$1159),Worksheet2!$A$1:$A$11 59)

Check the name of your tab if it's worksheet2 or sheet2

"GeorgeA" wrote:

Hello, I'm trying to solve a problem and was advised to use Lookup but it's
not working. I have 2 worksheets (over 1000 records each). Each worksheet has
a column for email address. I want to reference the email address in
Worksheet 1 (column G) and then search for a match in Worksheet 2 (column F).
When the match is found I want to copy data from column A in Worksheet 2 to
column B in Worksheet 1.
This is the formula I have placed in column B of Worksheet 2:
=LOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A$ 2:$A$1159)

The step through calculator finds the email address in G2 but fails the next
step. It returns #N/A.

I also tried to use VLOOKUP without luck.
=VLOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A $1:$A$1159,FALSE)
This returns #REF.

I'm under the gun and hope someone can help!

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Lookup or VLookup or something else??

Hi,

=INDEX(Worksheet1!$A$2:$A$1159,MATCH($G2,Worksheet 1!$F$2:$F$1159,0))


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"GeorgeA" wrote:

Hello, I'm trying to solve a problem and was advised to use Lookup but it's
not working. I have 2 worksheets (over 1000 records each). Each worksheet has
a column for email address. I want to reference the email address in
Worksheet 1 (column G) and then search for a match in Worksheet 2 (column F).
When the match is found I want to copy data from column A in Worksheet 2 to
column B in Worksheet 1.
This is the formula I have placed in column B of Worksheet 2:
=LOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A$ 2:$A$1159)

The step through calculator finds the email address in G2 but fails the next
step. It returns #N/A.

I also tried to use VLOOKUP without luck.
=VLOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A $1:$A$1159,FALSE)
This returns #REF.

I'm under the gun and hope someone can help!

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Lookup or VLookup or something else??

Awesome! Thanks!

"Shane Devenshire" wrote:

Hi,

=INDEX(Worksheet1!$A$2:$A$1159,MATCH($G2,Worksheet 1!$F$2:$F$1159,0))


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"GeorgeA" wrote:

Hello, I'm trying to solve a problem and was advised to use Lookup but it's
not working. I have 2 worksheets (over 1000 records each). Each worksheet has
a column for email address. I want to reference the email address in
Worksheet 1 (column G) and then search for a match in Worksheet 2 (column F).
When the match is found I want to copy data from column A in Worksheet 2 to
column B in Worksheet 1.
This is the formula I have placed in column B of Worksheet 2:
=LOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A$ 2:$A$1159)

The step through calculator finds the email address in G2 but fails the next
step. It returns #N/A.

I also tried to use VLOOKUP without luck.
=VLOOKUP($G2,Worksheet1!$F$2:$F$1159,Worksheet1!$A $1:$A$1159,FALSE)
This returns #REF.

I'm under the gun and hope someone can help!

Thanks!

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
Lookup or Vlookup? PJ Murph[_2_] Excel Worksheet Functions 5 May 15th 09 02:26 AM
=IF(AND(LOOKUP(F3,A21:A42)=F3,LOOKUP(B4,B21:B42)=B4),(VLOOKUP(B4,B RWD715 Excel Worksheet Functions 9 October 10th 08 10:11 PM
lookup or vlookup [email protected] Excel Worksheet Functions 7 July 28th 08 11:53 PM
Help with lookup (vlookup) davidio Excel Worksheet Functions 1 July 27th 07 08:42 PM
LOOKUP or VLOOKUP MichelleS Excel Worksheet Functions 9 October 20th 06 02:11 PM


All times are GMT +1. The time now is 01:20 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"