Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookUp - Does the VLookUp return the exact information? | Excel Worksheet Functions | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |