Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 186
Default Vlookup with two searches

I need to to create a vlookup that looks up within a table - first a zip code
(column a) and then a city within that zip code (column b) and returns me
columns b, c, & d.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Vlookup with two searches

Do you want data from B C and D all in one cell (separated by
commas?), or in 3 different cells?

Which cell is the zip code that you are looking up located?

Pete

On Aug 5, 4:50*pm, Jack wrote:
I need to to create a vlookup that looks up within a table - first a zip code
(column a) and then a city within that zip code (column b) and returns me
columns b, c, & d.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 186
Default Vlookup with two searches

I want b c and d in different cells.

The zip code to be looked up is on a separate sheet in column E. The city
to be looked up is in column D.

"Pete_UK" wrote:

Do you want data from B C and D all in one cell (separated by
commas?), or in 3 different cells?

Which cell is the zip code that you are looking up located?

Pete

On Aug 5, 4:50 pm, Jack wrote:
I need to to create a vlookup that looks up within a table - first a zip code
(column a) and then a city within that zip code (column b) and returns me
columns b, c, & d.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Vlookup with two searches

On Tue, 5 Aug 2008 08:50:01 -0700, Jack
wrote:

I need to to create a vlookup that looks up within a table - first a zip code
(column a) and then a city within that zip code (column b) and returns me
columns b, c, & d.



Assuming your zip codes table is in range A2:A100, your city names
table is in range B2:B100, your zip code to look for is in cell E1,
your city name to look for is in cell F1, and that your output from
this lookup is to be placed in the three cells E2, F2 and G2 you can
try the following formula in cell E2 and copy it to cells E2:G2.

=INDEX(B$2:B$100,MATCH(1,($A$2:$A$100=$E1)*($B$2:$ B$100=$F1),0))

Note that this is an array formula that has to be entered with
CTRL+SHIFT+ENTER rather than just ENTER

Hope this helps / Lars-Åke
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Vlookup with two searches

if you can, use a database: they're much faster and more reliable for
these types of tasks.
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
EXCEL: Truncating Text Fields to allow Vlookup searches to find da burkeam1113 Excel Worksheet Functions 1 August 21st 07 03:02 AM
VLOOKUP gives duplicate results for "empty" searches Doc Farmer Excel Worksheet Functions 4 April 5th 07 10:19 AM
Getting valid web searches and avoiding sites that contaminate web searches David McRitchie New Users to Excel 1 June 13th 06 03:00 AM
help with vlookup, wildcards, multiple searches mike Excel Worksheet Functions 2 May 14th 06 05:18 AM
Searches peterrump Excel Worksheet Functions 4 May 23rd 05 09:02 PM


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