Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rodney
 
Posts: n/a
Default use vlookup or other to find the nearest values (<) or interpola

How can I get VLOOKUP to find ither the nearest value to the one being
searched for, or to interpolate between the two nearest values?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Scoops
 
Posts: n/a
Default use vlookup or other to find the nearest values (<) or interpola

Hi Rodney

Use the Range_lookup value TRUE to return the highest figure lower than
your Lookup_value i.e.

if A1 = 1, A2 = 2, A3 = 4 then

=VLOOKUP(3,A1:A3,1,TRUE) will return "2" where 3 is not found and 2 is
the highest number not exceeding 3

Regards

Steve

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rodney
 
Posts: n/a
Default use vlookup or other to find the nearest values (<) or interp

But what if the we wanted to lookup 3.5... is there a way to get it to return
'4' since it is closer numerically?

Rodney



"Scoops" wrote:

Hi Rodney

Use the Range_lookup value TRUE to return the highest figure lower than
your Lookup_value i.e.

if A1 = 1, A2 = 2, A3 = 4 then

=VLOOKUP(3,A1:A3,1,TRUE) will return "2" where 3 is not found and 2 is
the highest number not exceeding 3

Regards

Steve


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default use vlookup or other to find the nearest values (<) or interp

Are the lookup values integers, then you can use

=LOOKUP(ROUND(3.5,0),A2:A20,B2:B20)

with a sorted list in A2:A20 will lookup 4 for 3.5 and 3 for 3.4


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Rodney" wrote in message
...
But what if the we wanted to lookup 3.5... is there a way to get it to
return
'4' since it is closer numerically?

Rodney



"Scoops" wrote:

Hi Rodney

Use the Range_lookup value TRUE to return the highest figure lower than
your Lookup_value i.e.

if A1 = 1, A2 = 2, A3 = 4 then

=VLOOKUP(3,A1:A3,1,TRUE) will return "2" where 3 is not found and 2 is
the highest number not exceeding 3

Regards

Steve




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Herbert Seidenberg
 
Posts: n/a
Default use vlookup or other to find the nearest values (<) or interp

If none of your numbers are integers
and the list is not sorted, see
http://tinyurl.com/nq7xk
or search this site: Closest Match, March 15

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
find averages not including 0's for values not in contiguous rows or columns jrozendaal Excel Worksheet Functions 1 December 15th 05 03:00 AM
How can I use the vlookup function to return a sum of the values? Chaandni Excel Discussion (Misc queries) 4 November 7th 05 03:05 PM
in excel, how do I find which values doesn't have a pair? jackies_place Excel Discussion (Misc queries) 2 December 17th 04 05:43 PM
How do you find duplicate values in excel- 2 columns of numbers rickmanz Excel Discussion (Misc queries) 1 December 15th 04 11:16 PM
To find different values in Col B corresp. to repeated vaues in c K.S.Warrier Excel Worksheet Functions 7 December 10th 04 10:57 AM


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