Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Lookup Closest Value

Is there a way that I can lookup the closest value of a given number in a
table of data using Index/Match?

I am looking for a formula that will provide the same functionality as
setting the VLOOKUP Range value to true but allows me to have more flexibilty
as to the data I can work with. Any help with this would be greatly
appreciated.

Chad
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Lookup Closest Value

HI Chad

=vlookup(a1,b2:c100,2,1)

adjust your range
the 1 at the end will return the close figure
hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Chad" escreveu:

Is there a way that I can lookup the closest value of a given number in a
table of data using Index/Match?

I am looking for a formula that will provide the same functionality as
setting the VLOOKUP Range value to true but allows me to have more flexibilty
as to the data I can work with. Any help with this would be greatly
appreciated.

Chad

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Lookup Closest Value

Can you provide a sample of the data, along with actual/expected results?

In article ,
Chad wrote:

Is there a way that I can lookup the closest value of a given number in a
table of data using Index/Match?

I am looking for a formula that will provide the same functionality as
setting the VLOOKUP Range value to true but allows me to have more flexibilty
as to the data I can work with. Any help with this would be greatly
appreciated.

Chad

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Lookup Closest Value

Assuming there are no duplicates in your array,
enter as an array formula
=SUMPRODUCT(((ABS(array-target))=MIN(ABS(array-target)))*array)
otherwise use this array formula for the first closest match in a list
=INDEX(list,MATCH(MIN(ABS(list-target)),(ABS(list-target)),0))

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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
Lookup closest number in list Jeff Excel Discussion (Misc queries) 6 November 26th 04 07:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 09:35 AM.

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"