Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Using Lookup with GT and LT Columns

I have an array with 3 columns; (1) column A is labeled less than or equal to
and contains the lower range of values; (2) column B is labeled greater than
or equal to and contains the upper range of values; (3) column C is a
discrete value. There are over 500 rows in my array in a continuous
sequence. Example, row 1 is 0,10,[value], row 2 is 11,20,[value, row 3 is
21, 30,[value].

I want to do a lookup on the array using a separate file that has 2 columns.
Column A has a value to match with the range in each row of the array and
column B has a value to be returned.

How would I do this in Excel? I am familiar with a 2 column vlookup but
have never tried it with ranges.

Thanks
Bill
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Using Lookup with GT and LT Columns

Hi Bill,

It doesn't sound like you need a two column VLOOKUP, you just need to do an
approximate match rather than an exact match:

=VLOOKUP(A1,[Book2]Sheet1!$A$2:$C$13,2,TRUE)

You are looking up the value in cell A1 in the range A2:A13 of the second
workbook, where that column is sorted in ascending order. You are bringing
back the item in column 2 of that range. TRUE means approximate. You can
also use 1 instead of TRUE or you can even leave the argument out:

=VLOOKUP(A1,[Book2]Sheet1!$A$2:$C$13,2)


--
Cheers,
Shane Devenshire
Microsoft Excel MVP

"billbrandi" wrote:

I have an array with 3 columns; (1) column A is labeled less than or equal to
and contains the lower range of values; (2) column B is labeled greater than
or equal to and contains the upper range of values; (3) column C is a
discrete value. There are over 500 rows in my array in a continuous
sequence. Example, row 1 is 0,10,[value], row 2 is 11,20,[value, row 3 is
21, 30,[value].

I want to do a lookup on the array using a separate file that has 2 columns.
Column A has a value to match with the range in each row of the array and
column B has a value to be returned.

How would I do this in Excel? I am familiar with a 2 column vlookup but
have never tried it with ranges.

Thanks
Bill

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 2 columns [email protected] Excel Worksheet Functions 1 January 3rd 08 06:37 AM
Lookup across columns MarkN Excel Worksheet Functions 3 October 18th 06 11:59 PM
Lookup two different columns Sunryzz Excel Worksheet Functions 10 May 31st 06 06:11 PM
Lookup Two Columns macshimi Excel Worksheet Functions 5 January 4th 06 07:44 PM
Lookup a value using two columns liz217 Excel Worksheet Functions 3 November 1st 05 07:58 PM


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