Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Matching formula results to datasets

Any help/advice much appreciated...

I have a numerical value produced as a result of an existing formula
and need to find the closest higher value from a predefined list.

Does anyone know how to perform this sort of lookup, with the match
from the pre-defined list as the output?

Thanks
Ben

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Matching formula results to datasets

If the list is sorted you can use LOOKUP, MATCH or (VLOOKUP or HLOOKUP). But
these find "largest value in the array that is less than or equal to
lookup_value" - assuming an ascending sort. (quote is from XL Help)

So if you calculated value is 2.4 and the list contains 1,2,3,4,5,6 then the
lookup gives you 2 which is fine. But if the calculated value is 2.8 I
expect you will want 3 which is not what the lookup will give.

You will need to do a bit of math to get what you need. Please tell us more
and maybe someone can help (I'll try!)

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Ben Burns" wrote in message
oups.com...
Any help/advice much appreciated...

I have a numerical value produced as a result of an existing formula
and need to find the closest higher value from a predefined list.

Does anyone know how to perform this sort of lookup, with the match
from the pre-defined list as the output?

Thanks
Ben



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Matching formula results to datasets

Sort your data in Descending order

=INDEX(A1:A7,MATCH(C2,A1:A7,-1))

Adjust to suit


"Ben Burns" wrote:

Any help/advice much appreciated...

I have a numerical value produced as a result of an existing formula
and need to find the closest higher value from a predefined list.

Does anyone know how to perform this sort of lookup, with the match
from the pre-defined list as the output?

Thanks
Ben


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Matching formula results to datasets

On 5 Apr, 15:38, Teethless mama
wrote:
Sort your data in Descending order

=INDEX(A1:A7,MATCH(C2,A1:A7,-1))

Adjust to suit

"Ben Burns" wrote:
Any help/advice much appreciated...


I have a numerical value produced as a result of an existing formula
and need to find the closest higher value from a predefined list.


Does anyone know how to perform this sort of lookup, with the match
from the pre-defined list as the output?


Thanks
Ben


This works perfectly. Many thanks.

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
Manipulating subsets of large datasets Astrofin Excel Worksheet Functions 4 March 7th 07 05:11 PM
charts macro for a number of datasets Nathan D Charts and Charting in Excel 1 February 23rd 07 02:58 AM
match two columns (with equal dates) and their attached datasets Claudia Excel Discussion (Misc queries) 1 September 1st 06 04:16 AM
Indexing/Matching True/False results drvortex Excel Worksheet Functions 5 November 29th 05 01:09 AM
Matching values from two columns and making a third column with the results - possible? Jamie Furlong Excel Discussion (Misc queries) 5 June 16th 05 03:32 PM


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