Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default VLOOKUP when a range resides in Column A

I'm quite familiar with the various LOOKUP functions, but do not know how to
do this:

Column A has a list of zip codes (first three numbers only) and Column B has
a value associated with the zip code.

The data in Column A can either be three digits (908) or a range of zip
codes (908-909) and represented as I have shown.

What function is used to LOOKUP the value in Column B when the input the
user will provide will only be the first three digits of the zip? If the data
in Column A were only three digits for every row (908), that is
straightforward. Not sure how it works if Excel needs to analyze the input to
determine if the corresponding value resides on a row where a range (908-909)
is present.

TIA

Rich
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default VLOOKUP when a range resides in Column A

With value in C1 e.g. 908

=INDEX($B$1:$B$100,MATCH(C1,LEFT($A$1:$A$100,3),0) )

Enter with Ctrl+Shift+Enter

HTH

"rpalarea" wrote:

I'm quite familiar with the various LOOKUP functions, but do not know how to
do this:

Column A has a list of zip codes (first three numbers only) and Column B has
a value associated with the zip code.

The data in Column A can either be three digits (908) or a range of zip
codes (908-909) and represented as I have shown.

What function is used to LOOKUP the value in Column B when the input the
user will provide will only be the first three digits of the zip? If the data
in Column A were only three digits for every row (908), that is
straightforward. Not sure how it works if Excel needs to analyze the input to
determine if the corresponding value resides on a row where a range (908-909)
is present.

TIA

Rich

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
COUNTIF: 2 criteria: Date Range Column & Text Column MAC Excel Worksheet Functions 14 September 16th 08 04:39 PM
XL 2007: Pivot Refresh slow when data resides in another workbook funnybroad Excel Discussion (Misc queries) 1 May 31st 07 07:31 AM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
CountIf first column range = "Word" and second column range <> 0 TinaMo Excel Worksheet Functions 3 June 3rd 05 10:56 PM


All times are GMT +1. The time now is 07:21 PM.

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"