#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default VLOOKUP

I have a spreadsheet with a worksheet with several thousand physician names,
addresses, etc.

In another worksheet in the same file I have a list of about 200 zip codes.

I need to pull all of the physicians from worksheet 1 that have office
addresses in the zip codes in worksheet 2.

I tried using VLOOKUP but I'm doing something wrong and it's not working.
Can someone tell me if VLOOKUP is the best function to use and how to use it
for this situation?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default VLOOKUP

Is you zip codes in the full addresses? if yes, traditional Vlookup can't
get the result.

Post your formula and a small sample of your data in sheet1 and sheet2

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"BStacy" wrote:

I have a spreadsheet with a worksheet with several thousand physician names,
addresses, etc.

In another worksheet in the same file I have a list of about 200 zip codes.

I need to pull all of the physicians from worksheet 1 that have office
addresses in the zip codes in worksheet 2.

I tried using VLOOKUP but I'm doing something wrong and it's not working.
Can someone tell me if VLOOKUP is the best function to use and how to use it
for this situation?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default VLOOKUP

No, the Zip Code is separate from the address.

The fields in Worksheet 1 look like:

FirstName, LastName, Address1, Address2, City, State, Zip, Phone, Specialty

Worksheet 2 only has a Zip Code field.



"Francis" wrote:

Is you zip codes in the full addresses? if yes, traditional Vlookup can't
get the result.

Post your formula and a small sample of your data in sheet1 and sheet2

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"BStacy" wrote:

I have a spreadsheet with a worksheet with several thousand physician names,
addresses, etc.

In another worksheet in the same file I have a list of about 200 zip codes.

I need to pull all of the physicians from worksheet 1 that have office
addresses in the zip codes in worksheet 2.

I tried using VLOOKUP but I'm doing something wrong and it's not working.
Can someone tell me if VLOOKUP is the best function to use and how to use it
for this situation?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 248
Default VLOOKUP

Assuming Col G contains the zip code in worksheet1, enter this in the first
available column..
=IF(ISNA(VLOOKUP(G1,Sheet2!A:A,1,FALSE)),"","Pick" )

You can then filter on Pick... to get the addresses you want...

"BStacy" wrote:

No, the Zip Code is separate from the address.

The fields in Worksheet 1 look like:

FirstName, LastName, Address1, Address2, City, State, Zip, Phone, Specialty

Worksheet 2 only has a Zip Code field.



"Francis" wrote:

Is you zip codes in the full addresses? if yes, traditional Vlookup can't
get the result.

Post your formula and a small sample of your data in sheet1 and sheet2

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"BStacy" wrote:

I have a spreadsheet with a worksheet with several thousand physician names,
addresses, etc.

In another worksheet in the same file I have a list of about 200 zip codes.

I need to pull all of the physicians from worksheet 1 that have office
addresses in the zip codes in worksheet 2.

I tried using VLOOKUP but I'm doing something wrong and it's not working.
Can someone tell me if VLOOKUP is the best function to use and how to use it
for this situation?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default VLOOKUP

This works perfectly but can you tell me why this works so that I can use
this to fit other situations?



"Sheeloo" wrote:

Assuming Col G contains the zip code in worksheet1, enter this in the first
available column..
=IF(ISNA(VLOOKUP(G1,Sheet2!A:A,1,FALSE)),"","Pick" )

You can then filter on Pick... to get the addresses you want...

"BStacy" wrote:

No, the Zip Code is separate from the address.

The fields in Worksheet 1 look like:

FirstName, LastName, Address1, Address2, City, State, Zip, Phone, Specialty

Worksheet 2 only has a Zip Code field.



"Francis" wrote:

Is you zip codes in the full addresses? if yes, traditional Vlookup can't
get the result.

Post your formula and a small sample of your data in sheet1 and sheet2

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"BStacy" wrote:

I have a spreadsheet with a worksheet with several thousand physician names,
addresses, etc.

In another worksheet in the same file I have a list of about 200 zip codes.

I need to pull all of the physicians from worksheet 1 that have office
addresses in the zip codes in worksheet 2.

I tried using VLOOKUP but I'm doing something wrong and it's not working.
Can someone tell me if VLOOKUP is the best function to use and how to use it
for this situation?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 248
Default VLOOKUP

I will try...
=IF(ISNA(VLOOKUP(G1,Sheet2!A:A,1,FALSE)),"","Pick" )

VLOOKUP(G1,Sheet2!A:A,1,FALSE)
takes the value in G1, goes to Col A on Sheet2 and tries to find a match...
if it does it returns the value from Col 1 in the range Sheet2!A:A and
returns the value there (so if you had the range as Sheet2!A:B and 2 instead
of 1, you would have got the value from Col B)
If no match is found you get #N/A error...
ISNA() checks for the return value... if it is TRUE (i.e. you got no
macth), IF returns nothing ("") and returns PICK if a match is found...
instead of PICK you can have the whole VLOOKUP there to get the value back...

Hope I did not confuse you...

See http://www.contextures.com/xlFunctions02.html for an excellent article...

"BStacy" wrote:

This works perfectly but can you tell me why this works so that I can use
this to fit other situations?



"Sheeloo" wrote:

Assuming Col G contains the zip code in worksheet1, enter this in the first
available column..
=IF(ISNA(VLOOKUP(G1,Sheet2!A:A,1,FALSE)),"","Pick" )

You can then filter on Pick... to get the addresses you want...

"BStacy" wrote:

No, the Zip Code is separate from the address.

The fields in Worksheet 1 look like:

FirstName, LastName, Address1, Address2, City, State, Zip, Phone, Specialty

Worksheet 2 only has a Zip Code field.



"Francis" wrote:

Is you zip codes in the full addresses? if yes, traditional Vlookup can't
get the result.

Post your formula and a small sample of your data in sheet1 and sheet2

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"BStacy" wrote:

I have a spreadsheet with a worksheet with several thousand physician names,
addresses, etc.

In another worksheet in the same file I have a list of about 200 zip codes.

I need to pull all of the physicians from worksheet 1 that have office
addresses in the zip codes in worksheet 2.

I tried using VLOOKUP but I'm doing something wrong and it's not working.
Can someone tell me if VLOOKUP is the best function to use and how to use it
for this situation?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default VLOOKUP

I am assuming your zip codes in col A, row 2 of sheet2
try this in B2 of sheet2
=INDEX(Sheet2!A1:A10,MATCH(A2,Sheet2!$G$1:$G$10,0) )
this will pull the first name
in C2 of sheet2
=INDEX(Sheet2!B1:B10,MATCH(A2,Sheet2!$G$1:$G$10,0) )
this will pull the last name

Select B2 and C2, copy down
yoy can use whole column as your reference if you want to.
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"BStacy" wrote:

No, the Zip Code is separate from the address.

The fields in Worksheet 1 look like:

FirstName, LastName, Address1, Address2, City, State, Zip, Phone, Specialty

Worksheet 2 only has a Zip Code field.



"Francis" wrote:

Is you zip codes in the full addresses? if yes, traditional Vlookup can't
get the result.

Post your formula and a small sample of your data in sheet1 and sheet2

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"BStacy" wrote:

I have a spreadsheet with a worksheet with several thousand physician names,
addresses, etc.

In another worksheet in the same file I have a list of about 200 zip codes.

I need to pull all of the physicians from worksheet 1 that have office
addresses in the zip codes in worksheet 2.

I tried using VLOOKUP but I'm doing something wrong and it's not working.
Can someone tell me if VLOOKUP is the best function to use and how to use it
for this situation?

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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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